cancel
Showing results for 
Search instead for 
Did you mean: 

AIX jcmon script for thread dumps

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

csh echo comma nd does not support escape charcater \n

need to switch to a different shell.

solved.