02-14-2009
Here is the log
wedges1:/tmp> ./test
mv: cannot access /ilx/ops/log/test.log
tee: /ilx/ops/log/test.log: No such file or directory
Pseudo-terminal will not be allocated because stdin is not a terminal.
+ echo 'CVServer is being stopped on drivers1 '
CVServer is being stopped on drivers1
+ pkill CVServer
+ sleep 10
+ echo '!!! Checking if CVServer is DOWN on drivers1 !!!'
!!! Checking if CVServer is DOWN on drivers1 !!!
!!! CVServer is DOWN on drivers1 !!!
Bringing UP the CVServer on drivers1
+ ps -ef
+ grep CVServer
+ grep -v grep
+ CHECK_PROCESS=
+ '[' = 0 ']'
-bash: line 10: [: =: unary operator expected
+ echo '!!! CVServer is DOWN on drivers1 !!!'
+ echo 'Bringing UP the CVServer on drivers1 '
+ . /ilx/gtp/pkg/CVServer/CURRENT/sbin/Start_CVServer
++ GTP_ROOT=/ilx/gtp
++ CVSERVER_PATH=/ilx/gtp/pkg/CVServer
++ CVSERVER_BINARY=CVServer
++ PID_FILE=/ilx/gtp/pkg/CVServer/data/.CVServer.Pid
++ LOCK_FILE=/ilx/gtp/pkg/CVServer/data/.CVServer.Lock
+++ which rm
++ RM=/usr/bin/rm
+++ which kill
++ KILL=/usr/bin/kill
++ GTP_CONTROL_LIB_ROOT=/ilx/gtp/pkg/GTPcontrol
++ export GTP_CONTROL_LIB_ROOT
++ LD_LIBRARY_PATH=/ilx/gtp/lib:
++ export LD_LIBRARY_PATH
++ '[' -f /ilx/gtp/pkg/CVServer/data/.CVServer.Lock ']'
+++ which sleep
++ SLEEP=/usr/bin/sleep
++ /usr/bin/sleep 4
++ /usr/bin/sleep 2
++ /ilx/gtp/pkg/CVServer/CURRENT/bin/CVServer
+ sleep 5
+ ps -ef
gtp 17464 16775 0 09:38:30 ? 0:03 /ilx/gtp/pkg/CVServer/CURRENT/bin/CVServer
CVServer is UP on drivers1 with id
+ grep CVServer
+ grep -v grep
+ '[' 0 = 0 ']'
+ PROCESS_ID_UP=14624
+ echo 'CVServer is UP on drivers1 with id '
^Cwedges1:/tmp>
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies
2. HP-UX
want to remove the thread
thanks (2 Replies)
Discussion started by: indira
2 Replies
3. Shell Programming and Scripting
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Discussion started by: arunkumarmc
5 Replies
4. Programming
Hi,
I have 1. lappy
2. server A
3. server B
Now, what i need is to run a command from lappy that will sftp a file from server A to server B.
Please guide me to achieve this.
-akash (1 Reply)
Discussion started by: akash.mahakode
1 Replies
5. UNIX for Advanced & Expert Users
Hi ,
I am hosting a website where in users log into their account and upload documents. The website is hosted on a Apache web server(4 nodes) sitting on RHEL VM's and load balanced by radware.
The issue i am facing is that the documents that are uploaded through the web site sometimes show... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies
6. Solaris
Hi,
I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script.
Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies
7. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
8. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
9. Shell Programming and Scripting
Hello Every one!!
I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server.
Before this I am using a sudo command to change the user.
The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies
10. Shell Programming and Scripting
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
LEARN ABOUT DEBIAN
ssh-copy-id
SSH-COPY-ID(1) General Commands Manual SSH-COPY-ID(1)
NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho-
rized_keys file.
If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your
ssh-agent. Otherwise, if this:
ssh-add -L
provides any output, it uses that in preference to the identity file.
If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin-
gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory,
if necessary.)
NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in
its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu-
ally, e.g. via
chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys
on the remote machine.
SEE ALSO
ssh(1), ssh-agent(1), sshd(8)
OpenSSH 14 November 1999 SSH-COPY-ID(1)