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

RE: shell script: How to determine if I'm in the background?



>I'd very much like to hear from anybody who might have faced the same
>problem and learn of possibly simpler alternative solutions. I enclose
>the code below.

While an interesting problem to be sure, it seems like a solution begging
for a question.  Why don't you just add an argument flag that when present
tells your application to go ahead without input, and then add that flag to
your cron job?  Or extract the critical parts out into functions and then
write different wrapper scripts?  Seems like much simpler alternatives to
me.

-i
ianw@ieee.org
http://www.wienand.org

**********************************************************************
CAUTION: This message may contain confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message, any use or disclosure of this message is prohibited.  If you received this message in error please notify Mail Administrators immediately.  You must obtain all necessary intellectual property clearances before doing anything other than displaying this message on your monitor.  There is no intellectual property licence.  Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Woolworths Ltd.
**********************************************************************



Reply to: