|
Prev: Error appears only when running "source scriptName" for a simple script - why ?
Next: multiply shell variables in one awk statement
From: amerar@iwc.net on 18 Sep 2006 10:21 Hi Everyone, We have a script that does a bunch of system & database checking. It runs for more than 100 databases, so it runs for like 10 hours........ Anyhow, the account times out all the time, and the script never finishes. I've been trying to read on some way to simulate a keypress about every 15 minutes. We do not have EXPECT, and I've seen a lot of references to TIOCSTI. Can someone tell me what that is and how I can use it in my script? We're running ksh93 on AIX..... Thanks!
From: aryzhov on 18 Sep 2006 10:38 amerar(a)iwc.net wrote: > Hi Everyone, > > We have a script that does a bunch of system & database checking. It > runs for more than 100 databases, so it runs for like 10 hours........ > > Anyhow, the account times out all the time, and the script never > finishes. I've been trying to read on some way to simulate a keypress > about every 15 minutes. > > We do not have EXPECT, and I've seen a lot of references to TIOCSTI. > Can someone tell me what that is and how I can use it in my script? > > We're running ksh93 on AIX..... nohup Script_Name Script_Args </dev/zero & Then, you can logoff and come again in 10 hours to check nohup.out file. Regards, Andrei
From: Bill Marcum on 18 Sep 2006 10:47
On 18 Sep 2006 07:21:33 -0700, amerar(a)iwc.net <amerar(a)iwc.net> wrote: > > Hi Everyone, > > We have a script that does a bunch of system & database checking. It > runs for more than 100 databases, so it runs for like 10 hours........ > > Anyhow, the account times out all the time, and the script never > finishes. I've been trying to read on some way to simulate a keypress > about every 15 minutes. > > We do not have EXPECT, and I've seen a lot of references to TIOCSTI. > Can someone tell me what that is and how I can use it in my script? > Use nohup so the script will continue running after you log out. -- Take my word for it, the silliest woman can manage a clever man, but it needs a very clever woman to manage a fool. -- Kipling |