Error message "jrcmd: not found" when I execute a script
0
votes
1
answer
257
views
I am getting the error below when I execute a script:
> Ksh: line 1: jrcmd: not found
When I execute the same command in weblogic server, I get the output, but executing the same command inside a script it gives me the error message.
This is the script:
#!/bin/ksh
process_id=`ssh -q account@servername -n "pa -ef |grep weblogic|great -v "grep""|awk '{print $2}'
ssh -q account@servername -n "jrcmd $process_id print_threads > /tmp/thread.txt"
Can I expect any answer?
Asked by Mallikarjun Malage
(3 rep)
Sep 17, 2018, 04:51 PM
Last activity: Sep 18, 2018, 09:45 PM
Last activity: Sep 18, 2018, 09:45 PM