on 11-24-2009 4:07 PM
Hi Everyone,
I'm trying to write an AIX unix shell script that will execute jcmon and create thread dumps. I'm struggling to get it to work properly. I've searched the forums and come across a thread which suggests doing it this way:
echo "20\n10\n<process_id>\ny\n0\n0\n" | jcmon pf=<profile>
but I can't seem to get this to work. It just seems to get jcmon in a loop. Even something smaller like
echo "20" | jcmon pf=<profile>
Gets jcmon in a loop. Anybody have any ideas how this could be done?
Cheers,
Dion
csh echo comma nd does not support escape charcater \n
need to switch to a different shell.
solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.