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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-09-2009
Peuj Peuj is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 7
Thumbs down Cannot retreive correct $PATH using PLINK

Hi,

I'm using plink to execute shell script on UNIX machines.
It works pretty well excepted with some machines where I don't have the same $PATH than with putty.

I'm using the command
Code:
PLINK.EXE -ssh machinename -l user -pw password echo $PATH
And for putty nothing special set, I use ssh as connection type.

I'm not a specialist so I'm not sure of the following but it seems that the profile is not load which could explain the difference between the $PATH.

As I don't how works the profile file and I'm not the owner the machines I'm a little lost.

Is there something known with plink? Or something I must set?

Thanks