Sponsored Content
Top Forums Shell Programming and Scripting How to use usrun command in shell script? Post 302890724 by vbe on Friday 28th of February 2014 09:21:11 AM
Old 02-28-2014
Never used these command only know they are from Novell...
Code:
usrun -u utlanps -h gbrpcr00076n06 "(cd /home/apps/Mydir/;lst;exit)"

No guarantee... since I have nothing like to test...
The idea usrun expects as last argument a command so we try to show "a command" ...
Not sure you need the exit...
What does it produce?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

can anyone help with shell script command about searching word with grep command?

i want to search in the current directory all the files that contain one word for example "hello" i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies

2. 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

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... (4 Replies)
Discussion started by: MandyR
4 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... (2 Replies)
Discussion started by: MandyR
2 Replies

5. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

6. Shell Programming and Scripting

Unable to pass shell script variable to awk command in same shell script

I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist. diff=$1$2.diff id=$2 new=new_$diff echo "My id is $1" echo "I want to sync for user account $id" ##awk command I am using is as below cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies

7. Shell Programming and Scripting

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 usrun -h $servername root I am making script and want to store in NPUM server and in that script i am using this command usrun... (5 Replies)
Discussion started by: pallvi_mahajan
5 Replies

8. 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

9. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
ATF-SH(1)						    BSD General Commands Manual 						 ATF-SH(1)

NAME
atf-sh [-s shell] -- interpreter for shell-based test programs SYNOPSIS
atf-sh script DESCRIPTION
atf-sh is an interpreter that runs the test program given in script after loading the atf-sh(3) library. atf-sh is not a real interpreter though: it is just a wrapper around the system-wide shell defined by ATF_SHELL. atf-sh executes the inter- preter, loads the atf-sh(3) library and then runs the script. You must consider atf-sh to be a POSIX shell by default and thus should not use any non-standard extensions. The following options are available: -s shell Specifies the shell to use instead of the value provided by ATF_SHELL. ENVIRONMENT
ATF_LIBEXECDIR Overrides the builtin directory where atf-sh is located. Should not be overridden other than for testing purposes. ATF_PKGDATADIR Overrides the builtin directory where libatf-sh.subr is located. Should not be overridden other than for testing purposes. ATF_SHELL Path to the system shell to be used in the generated scripts. Scripts must not rely on this variable being set to select a specific interpreter. EXAMPLES
Scripts using atf-sh(3) should start with: #! /usr/bin/env atf-sh Alternatively, if you want to explicitly choose a shell interpreter, you cannot rely on env(1) to find atf-sh. Instead, you have to hardcode the path to atf-sh in the script and then use the -s option afterwards as a single parameter: #! /path/to/bin/atf-sh -s/bin/bash ENVIRONMENT
ATF_SHELL Path to the system shell to be used in the generated scripts. SEE ALSO
atf-sh(3) BSD
September 27, 2014 BSD
All times are GMT -4. The time now is 06:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy