bash cli

Don Russell fedora at drussell.dnsalias.com
Tue Aug 21 21:05:29 UTC 2007


Stuart Murray-Smith wrote:
>>> It's not in the script itself, but a keystroke sequence that one does
>>> at the command prompt... same as Ctrl-R gets one a rolling history
>>> stack :-)
>>>
>>>       
>> so here you are assuming that the shell keeps a history of exit status?
>>     
>
> Not necessarily, the rolling history stack and exit status was an example :-)
>
> If I had to enter:
>
> # pidof mysqld
>
> say, and this cli returned null, there is something that I can do to
> pipe the actual return to stdout, even if it's default is to return
> null to monitor (stdout).
>
> HTH with the description :-)
>
>   
that sounds a lot like echo $?...as in

# pidof mysqld;echo $?





More information about the fedora-list mailing list