| | |
two variable sin single loop
![]() |
•
•
Join Date: May 2004
Posts: 178
Reputation:
Solved Threads: 10
Shell Scripting Syntax (Toggle Plain Text)
for i in vs01a vs01b do for k in 1 2 do rsh $i echo $(tail -20 /opt/oracle/admin/+ASM/bdump/alert_+ASM"$k".log) >> VS_logs.txt done done
For "rsh" do you mean rexec or remsh? Or does rsh create a remote shell on remote systems using your OS?
•
•
Join Date: May 2004
Posts: 178
Reputation:
Solved Threads: 10
Why loop? you only need two rsh lines. You gain nothing by looping.
![]() |
Similar Threads
- Help with FOR loop (Shell Scripting)
- Loop challenge (C)
- loop problem (C++)
- fstream.h, I thought it was a standard header.... (C++)
- while loop in c++ help needed (C++)
Other Threads in the Shell Scripting Forum
- Previous Thread: Full screen prob
- Next Thread: FInding dates on files
| Thread Tools | Search this Thread |





