LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Paul Schulz <pauls@caemrad.com.au>
To : linuxsa@linuxsa.org.au
Date: Thu, 05 Nov 1998 14:25:14 +1030
Bash scripting problem..
Hopefully someone out there knows..
When placing a bash script from the bash shell into background,
with the stdout piped to a file.. why does the script stop and ask for
user input? (I don't think that it's this particular script in
question as it happens for other scripts as well...)
(script follows)
I just have to
call the script into forground and it goes again
bash$ net_load >>net_load.log &
(after a while)
[1]+ Stopped (tty input) net_load >>net_load.log 2>1
Thanks in advance..
Paul
---
#!/bin/bash
SERVERS=`ypmatch servers netgroup | sed 's/(\([^,]*\),[^)]*)/\1/g'`
for HOST in $SERVERS
do
while true
do
for HOST in $SERVERS
do
echo -n "$HOST: " `date` " "
rsh $HOST uptime
done
sleep 600
done
done
---
--
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page