on 05-10-2017 12:19 PM
Hello All,
I have tried to execute a Unix script . lines of Unix Script are below:
apparray =( ) HYBRIS_DATA_DIR=/files0/nlhyq_app/hybris/data for i in "${apparray[@]}" do echo "Starting for server : $i"; pid=`ssh $remoteuser@$i "cat $HYBRIS_DATA_DIR/hybristomcat.java.pid"` echo $pid; ssh $remoteuser@$i "rm /files0/home/$remoteuser/$i.heapdump.log; /usr/java/jdk1.8.0_111/bin/jmap -J-d64 - dump:live,format=b,file=/files0/home/$remoteuser/$i.heapdump.log $pid" scp $remoteuser@$i:/files0/home/$remoteuser/$i.heapdump.log $i.heapdump.log done ---**-- And when I execute it it will throu error below: cat: /files0/nlhyq_app/hybris/data/hybristomcat.java.pid: No such file or directory
Can any one please help ...
Thanks
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.