10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to execute below the script for remote server.i am not able to execute below the script please help me urgent for this issue.i getting below the error
ssh user@server<<EOJ
cd path
for i in *
do
echo $i
done
EOJ
Pseudo-terminal will not be allocated because stdin is not a... (1 Reply)
Discussion started by: SAUD PASHA
1 Replies
2. UNIX for Advanced & Expert Users
Hello,
I am writing a shell script in which i do ssh to remote server and count the number of files there and then exit. After the exit the shell script terminates which i believe is expected behavior. Can some one suggest me a way where even after the exit the script execution resumes.
... (2 Replies)
Discussion started by: manaankit
2 Replies
3. Shell Programming and Scripting
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies
4. UNIX for Advanced & Expert Users
I have recently discovered an annoying problem with some of our Linux boxes (running Opensuse 11.3) that is defying our attempts to resolve.
If I (or anyone else using c shell) log in remotely to 2 of our Opensuse 11.3 machines with ssh, then they cannot run a lot of software. It seems that... (1 Reply)
Discussion started by: asharff
1 Replies
5. UNIX for Dummies Questions & Answers
Hi i m writing a script which will fetch data from different machines and display it on single terminal.
I have created a file named SERVERNAMES containing ip address of machines i need to monitor.
Then for every IP i m issuing ssh command to get date on that machine.
However When i m trying... (3 Replies)
Discussion started by: pinga123
3 Replies
6. Shell Programming and Scripting
Hi,
When runnin the following script it complte successfully with out any problem
#!/bin/sh
SERV="crm1"
for s in $SERV
do
export WebLogicSessions=`ssh psoft@$s "cd /software/psoft/scripts ; ./getweblogicsessions.sh crm1 8001 PIA | awk '{print $1}' `
echo "Checking number of... (0 Replies)
Discussion started by: yoavbe
0 Replies
7. Shell Programming and Scripting
Hi all,
I am trying to write a script in shell which can connect me to a remote server and run some commands my problem is i cant pass the password barrier.I read a lot of articles where bloggers have suggested not to use telnet and to use something more secure like ssh.I tried ssh but as soon... (8 Replies)
Discussion started by: pistachio
8 Replies
8. Shell Programming and Scripting
I need to ssh a server using shell script and run certain commands there.
Please let me know how to do it .
Thanks! (4 Replies)
Discussion started by: asth
4 Replies
9. Shell Programming and Scripting
I'm writing a script which is meant to ssh into a remote machine, sed a file there, and write the output to a new file on the remote machine. Obviously the easy way to do this is to write and execute the script on the remote machine, but I'm trying to do this all via ssh since I like to keep and... (4 Replies)
Discussion started by: maethlin
4 Replies
10. Shell Programming and Scripting
Hi
Please help me with the following problem with my script.
The following block of code is not repeating in the while loop and exiting after searching for first message.
input_file
==========
host001-01
host001-02
2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies