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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Launching Several Shells.... marconi Shell Programming and Scripting 1 03-05-2008 07:24 PM
How can I do a rexec to execute un C exe ? Lika Shell Programming and Scripting 4 02-22-2007 10:17 AM
Launching a new bash shell gsd Shell Programming and Scripting 3 07-20-2006 04:30 AM
Rexec pmj1970 SUN Solaris 1 04-20-2004 12:46 PM
launching OSX apps in UNIX madknowledge UNIX for Dummies Questions & Answers 3 09-24-2002 03:07 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-19-2008
JohnMurdoch JohnMurdoch is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 5
launching script via REXEC

Hi folks!

my client uses an winapplication which is launching shell-scripts remotely on a HP-Unix Machine via Rexec.

The application-configuration is launching the script (which is in the home directory of connecting user) like:
Code:
rexec host user pass shell.sh
So far so good, everything works.

Now they decided to get rid of the quite expensive HP-Unix server and asked me to do the same on a Linux-Distro. I set up CentOS and the REXEC-daemon, but....


1. When I launch the script against new Linux server with (same command as it is done towards old HP Unix):
Code:
rexec host user pass shell.sh
it does not work (xinetd gives exitcode 127 : file not found)

2. When I launch the script with:
Code:
rexec host user pass ./shell.sh
it works, but the problem is that i am not allowed to change the settings in the application. So I have to find a solution to launch the script like in point 1 above.

I tried already to put the script-folder to the PATH-variable, but it did not help.

Does somebody know what else I can do? My only little goal is to get this script launched using the commands at point 1.

PS: I know REXEC is not secure, but it's a requirement by company
  #2 (permalink)  
Old 08-19-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Did you try to put full path while executing command like,
Code:
rexec host user pass /path/where/it/is/shell.sh
It would be better if you can tell us what shell.sh does?

- nilesh
  #3 (permalink)  
Old 08-20-2008
JohnMurdoch JohnMurdoch is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 5
Quote:
Originally Posted by ynilesh View Post
Did you try to put full path while executing command like,
Code:
rexec host user pass /path/where/it/is/shell.sh
It would be better if you can tell us what shell.sh does?

- nilesh
the shell.sh is just simply creating a file.

it works with ./shell.sh and also with /path/where/it/is/shell.sh
but my problem is that i am not allowed to change the launching-parameters. so i'm looking for a solution on the linux-server where rexecd is installed
  #4 (permalink)  
Old 08-20-2008
JohnMurdoch JohnMurdoch is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 5
ok solved it!

I checked the $PATH variable via rexec (it was different than on system) and put a symbolic link to the script on a folder which was in PATH-var
Sponsored Links
Closed Thread

Bookmarks

Tags
linux commands, unix commands

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 07:02 AM.


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