10 More Discussions You Might Find Interesting
1. Solaris
Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh.
Actions to perform within a single ssh session via shell script
- copy a file
- untar at destination (remote host)
OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies
2. Shell Programming and Scripting
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies
3. Shell Programming and Scripting
Hi friends,
i need to prepare a script ( in perl)
i have a file called "demo.exe" in my local unix host.
i have a list of remote hosts in a file "hosts.txt"
now i need to push "demo.exe" file to all the hosts in "hosts.txt" file.
for this i need to prepare a script(in perl, but shell... (5 Replies)
Discussion started by: siva kumar
5 Replies
4. UNIX for Dummies Questions & Answers
Hi All Genious,
I want to copy a file name XYZ .In a directory /HOME/dir/IXOS1/dir1
which contain multiple directories named not in pattern want to copy the XYZ in all of the directories available on path /HOME/dir/IXOS1/dir1 .
Thanks in advance . (2 Replies)
Discussion started by: mumakhij
2 Replies
5. UNIX for Dummies Questions & Answers
Hello,
This question has been posted by another member previously, but no reply/answer was posted to that thread and it has been closed. Searches do not seem to turn up a straight answer as to whether or not this is possible.
So I ask the same question:
We recently had our SMTP server go... (2 Replies)
Discussion started by: kwasserb
2 Replies
6. UNIX for Dummies Questions & Answers
We recently had an smtp server go down and didn't have a backup. Now that the backup server is up and running, I'd like to set up sendmail on our Solaris 10 servers to failover to the backup mail (smtp) server if the primary refuses connections.
I've googled "mailhost" and haven't found... (0 Replies)
Discussion started by: the.gooch
0 Replies
7. UNIX for Dummies Questions & Answers
Hello all,
I'm using the Bash shell on Solaris 8.
Please can someone tell me how I can delete multiple lines in the hosts file?
I have a list of hosts that I want to quickly delete in the hosts file, but I'm looking for a quicker way than using VI to delete the lines one by one.
Regards,... (4 Replies)
Discussion started by: wthomas
4 Replies
8. UNIX for Dummies Questions & Answers
Don't know if its correct to write into this topic but how can I copy files from a Windows machine to a UNIX system? (2 Replies)
Discussion started by: agasamapetilon
2 Replies
9. Shell Programming and Scripting
Hi,
I have a abc.txt file.
In this file there is a SQL query which Iwant to copy and print it on another file.The query (for eg) is written like this:
SELECT field1,
field2,
field3
from table1,table2
where <conditions>
END
I want to copy this query to another... (3 Replies)
Discussion started by: jisha
3 Replies
10. UNIX for Dummies Questions & Answers
Please help - I need to copy a single file to multiple directories.
Dir structure:
Parent_Directoy
Filename1
Child_Directory1
Child_Directory2
Child_Directory3
Child_Directory4
....
So I need to copy Filename1 to all of the... (2 Replies)
Discussion started by: kthatch
2 Replies