Hi,
I've two queries:
1) In linux OS inside a script, I'm running a "tar" command using "rsh"
and the "tar" command is executed as a background process in the script.
The command is executed from a Linux machine and the remote machine( rsh )
is also Linux. Once the tape in the remote machine is full I'm not
geting a message for changing the tape, (because the tar command is run as
a background process)
Please tell me how can I get the tape changing message on the local
console in this situation.
2) In a shell script I want to start a command in background. Then after
some time I want to bring that same job to foreground in the same script.
For example I tried the following shell script.
--------------------------------- ( test.sh)
find / -name krishna -print&
pid=$!
echo $pid
sleep 3
fg
echo "in for ground"
sleep 5
----------------------------------
If I execute this script using "sh test.sh" and "./test" I'm getting the
following error when it tries to bring the "find" process to foreground
./test.sh: fg: no job control
I've tried "fg" using "fg %1" and "fg %find" also in the above script.
Please give me a solution for the above mentioned problems.
Thanks in advance
Sathish
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help