The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running command "md5" on remote host not working. ynilesh UNIX for Advanced & Expert Users 1 02-01-2008 08:15 AM
cd command is not working in my shell script amitrajvarma Shell Programming and Scripting 3 10-03-2007 05:04 AM
CDE Remote Login is not Working !!! adel8483 SUN Solaris 4 03-19-2007 06:35 AM
Loop in remote shell command jhansrod Shell Programming and Scripting 1 08-08-2005 02:29 AM
remote shell command yatno UNIX for Dummies Questions & Answers 4 08-10-2001 08:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-12-2007
lastkey lastkey is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
command not working with rsh(remote shell)

Hi,

root@air01a>SS7Manager -status

This command gives correct output. But when I write this in script and run it on SUNMC (which can connect to air01 and by default login as root). It gives the error "SS7manager not found" or "can not open". Here is the scripts.

#!/bin/sh
rsh air01a SS7Manager -status >> air_log.txt


For your refrence if I run below script. It gives correct output without any problem.

#!/bin/sh
rsh air01a df -h >> air_check.txt
rsh air01a sar 1 5 >> air_check.txt


Kindly Help!!!
  #2 (permalink)  
Old 02-12-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
The path to the SS7Manager command may not be getting set when logging in using rsh. Try using the absolute path to the command when you rsh.
  #3 (permalink)  
Old 02-12-2007
lastkey lastkey is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
How can we check the path of a command? Because this SS7Manager is proprietary utility.
  #4 (permalink)  
Old 02-12-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
Quote:
Originally Posted by lastkey
How can we check the path of a command? Because this SS7Manager is proprietary utility.
When logged in on host "air01a" you can try:
which SS7Manager

Also you could try:
ps -ef | grep SS7Manager (because I assume it is running, and "ps" might tell you the full path)

If meither doesn't tell you the location you can try:
find / -name SS7Manager
  #5 (permalink)  
Old 02-12-2007
lastkey lastkey is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
Thank you brother. Problem solved by giving full path of SS7Manager. But I used

'#type SS7Manager', to get the full path of command. Thanks a lot for your help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0