Usrun


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Usrun
# 1  
Old 06-19-2014
Usrun

Hi Friends,

can any one help me on making my one script.

We are logging into AIX server through NPUM gateway
and i am using this command in npum gateway
Code:
usrun -h $servername root

I am making script and want to store in NPUM server and in that script i am using this command

Code:
usrun -h $servername 'ls-ltr;exit'

But am getting error

Code:
/usr/bin/usrun(39) permission denied

Can anyone help me how i can run above command and also one more thing , how i can call remote server script with usrun command from NPUM
# 2  
Old 06-19-2014
Seems like usrun is a script with an illegal access on line 39.
# 3  
Old 06-19-2014
so is there anyway to sort out this issue or any another command
# 4  
Old 06-19-2014
Look inside or run under strace/truss/tusc.
# 5  
Old 06-19-2014
could you please explain in brief
# 6  
Old 07-02-2014
Depending on your host os, truss (solaris/aix), tusc (HP) or strace (LINUX) have the ability to run things or attach to running processes and tell you all the system calls they make in detail. truss(solaris) can even tell you about other library calls that you select. It is very educational. No source code needed, no recompile; heck, it can already be running and you can apply them.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Usrun command

What is the use of this command and do this command require passed ? ---------- Post updated at 05:28 PM ---------- Previous update was at 05:27 PM ---------- Password (2 Replies)
Discussion started by: sukesh31
2 Replies

2. Shell Programming and Scripting

How to use usrun command in shell script?

Hi All, I am a newbie to shell scripting. I need to make a simple script -which logs on to a server with usrun command -Check some file listing at that location and come back where I was before. usrun -h gbrpcr00076n06 utlanps cd /home/apps/Mydir/ lst exit But after I run the... (6 Replies)
Discussion started by: CoolMohsin
6 Replies

3. UNIX for Advanced & Expert Users

usrun command

Hi, I need to run usrun command and direct console output into a text file. eg: usrun -h <hostname> nobody The above example retunns "/bin/usrun: Permission denied" on the screen. I want this string to be directed into a text file. Please help me to achieve this. Any help in this... (2 Replies)
Discussion started by: MandyR
2 Replies

4. UNIX for Advanced & Expert Users

usrun command

Hi, I need to run usrun command and direct console output into a text file. eg: usrun -h <hostname> nobody The above example retunns /bin/usrun: Permission denied on the screen. I want this string to be directed into a text file. Please help me to achieve this. Any help in this... (4 Replies)
Discussion started by: MandyR
4 Replies

5. UNIX for Advanced & Expert Users

usrun command

Hi, I need to run usrun command and direct console output into a text file. eg: usrun -h <hostname> nobody The above example retunns "/bin/usrun: Permission denied" on the screen. I want this string to be directed into a text file. Please help me to achieve this. Any help in this regard... (2 Replies)
Discussion started by: MandyR
2 Replies
Login or Register to Ask a Question