Search Results

Search: Posts Made By: bschnair
2,156
Posted By bschnair
Retreiving environment variable from remote system
I am trying to write a short block of code that takes a partial filename as input from the command line, then searches multiple remote servers for any file that matches the pattern. If the pattern...
5,255
Posted By bschnair
As I needed this script to function a couple of...
As I needed this script to function a couple of days ago, I aborted the "read from external file" concept and hard-coded the box names into a 'for' loop (per Just_Ice's original concept). It worked...
5,255
Posted By bschnair
thestevew, I created a ksh script that...
thestevew,

I created a ksh script that contains the 'while read' loop you described above, and added "echo $host" lines just inside the 'do' and 'done'. I also created a 'listofhostsfile'...
5,255
Posted By bschnair
Thanks, thestevew! What's the "b" for at the end...
Thanks, thestevew! What's the "b" for at the end of the 'while' line? Typo?
5,255
Posted By bschnair
Just_Ice: I like the idea and the...
Just_Ice:

I like the idea and the simplicity! Just wondering, is it (rsh $host "script") or (rsh $host -e "script")? A pal suggested using "-e", but I can't find that switch in the man pages.
...
5,255
Posted By bschnair
Getting one script to run on multiple boxes
I have a script that generates an output file after pulling data from a local DB on one of my boxes. There are other nearly-identical boxes on the network, each with their own local DB, and I'd like...
11,552
Posted By bschnair
Thanks for the advice! I was pretty sure that...
Thanks for the advice! I was pretty sure that the ksh snippet was a kludge from someone who wasn't a pro either.

HOWEVER... I had a feeling that the popular answer would be to move everything...
11,552
Posted By bschnair
ksh "while" loop within a csh script
I'm no unix pro for sure, but I have programmed enough other languages to usually get the job done in unix when I have to.

I'm currently trying to automate a manual diagnostic process. One of the...
Showing results 1 to 8 of 8

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