Search Results

Search: Posts Made By: johna
2,636
Posted By johna
You could try something like: while : ; do ...
You could try something like:
while : ; do
sleep 5
echo "Still running at $( date )"
done &
pid=$!

<YOUR CODE HERE>

kill $pid
8,423
Posted By johna
Actually...
...this is an issue with shell quoting.

In my original reply which mistakenly used double quotes, the "$?" was returning the exit code of whatever command was run prior, not of the rsh (the "$?"...
8,423
Posted By johna
This should work: rsh sundev1 "psef...
This should work:
rsh sundev1 "psef bb_filexfer; echo $?"
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy