[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chat script ?




Todd Bradshaw said:
> how do i get the exit status of chat, or any program.

$?

The use should be obvious...

osiris:~$ ( exit 1 ) ; echo $?
1
osiris:~$ ( exit 42 ) ; echo $?
42
osiris:~$ ( exit ) ; echo $?
0

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(217)698-1694             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

--
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.