linux暂停命令 pause,linux的系统(“PAUSE”)?

Is there something like system("PAUSE") for linux?

解决方案In article , Paminu wrote:

:Is there something like system("PAUSE") for linux?

As far as this newsgroup is concerned, the exact replacement is

system("PAUSE");

That''s because as far as this newsgroup is concerned, PAUSE has

an unidentified system-dependant function. If the functionality of

PAUSE were to be described, then a Unix or Linux newsgroup would be

able to tell you what the nearest Linux equivilent would be.

On some systems, PAUSE means "suspend CPU activity on the system until

there is an interrupt". On others, it means "suspend the active process

for 1 second". On others, it means "flush any pending output and

wait until a key is pressed and then continue (without waiting for

a newline.) On others, the newline is required. On others, it means

"print the error message associated with not finding a named program

or command". On others it means "look for an executable program

named PAUSE in the current directory and execute it, with whatever

consequences that has." Others yet it would mean "look for an

executable program named PAUSE in the currently defined list of

program locations, and execute it, with whatever condequences that has."

Possibly the most common meaning, though, is "Play a recording

of your voice telling the dog to get his paws off of the furniture."

If that''s the one you were looking for, see section 93.11 of the

Linux FAQ, which discusses the various ways of getting high-fidelity

playback of His Master''s Voice on various kinds of sound cards

and Midi Synthesizers.

--

All is vanity. -- Ecclesiastes

Paminu writes:Is there something like system("PAUSE") for linux?

We don''t know. Try a Linux or Unix group. comp.unix.programmer is a

likely place to ask about this -- but first explain what

system("PAUSE") means.

But first, try reading the documentation that comes with the system.

--

Keith Thompson (The_Other_Keith) ks***@mib.org

San Diego Supercomputer Center

We must do something. This is something. Therefore, we must do this.

Paminu wrote:Is there something like system("PAUSE") for linux?

This is off-topic for comp.lang.c, you should have posted to

comp.unix.programmer. However, I have written a clone of the MS-DOS

pause command for Linux, and I can give you a link to it here.

http://members.optushome.com.au/sbiber/pause-1.0.tar.gz

It should work on other Unix-like systems too. Extract it, change to the

directory pause-1.0, and type

make

to build, and you can type

sudo make install

to copy the executable to /usr/local/bin

--

Simon.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值