RE: [Ssh-sftp-perl-users] Running a Net::SSH::Perl script via a W eb server
Brought to you by:
dbrobins
|
From: Ari G. <ar...@su...> - 2005-08-25 16:30:41
|
That's basically what we've done as well, but since we want to distribute
this script to multiple servers, and based on different server configs the
script may be run as different users - so while we can add more code in the
script to change the HOME environment variable based on the user that is
running the script (and maybe then reading /etc/passwd to determine the
proper home dir) it would be nice to not have to deal with this (or at least
to better understand it) - so, if anyone has more insight as to how or why
this variable is changed, or maybe if there is some other setting that would
address this I'd be interested in hearing about it.
Thanks,
Ari
-----Original Message-----
From: ssh...@li...
[mailto:ssh...@li...] On Behalf Of
Thompson, Mark
Sent: Thursday, August 25, 2005 9:05 AM
To: 'ssh...@li...'
Subject: RE: [Ssh-sftp-perl-users] Running a Net::SSH::Perl script via a W
eb server
Thanks that has made my script work, but why does the Net::SSH::Perl module
not set/use this correctly?
Mark
-----Original Message-----
From: Vladimir Parkhaev [mailto:vla...@ar...]
Sent: 25 August 2005 16:06
To: Thompson, Mark
Subject: Re: [Ssh-sftp-perl-users] Running a Net::SSH::Perl script via a Web
server
Quoting Thompson, Mark (Mar...@uk...):
>
> Does anyone know why this happens?
Try adding
$ENV{HOME} = '/usr/netscape';
on top of your script;
--
.signature: No such file or directory
Find out about The Experian Conference 2005 at
www.experian.co.uk/conference2005
==========================================================================
Information in this e-mail and any attachments are confidential, and may not
be copied or used by anyone other than the addressee, nor disclosed to any
third party without our permission. There is no intention to create any
legally binding contract or other binding commitment through the use of this
electronic communication unless it is issued in accordance with the Experian
Limited standard terms and conditions of purchase or other express written
agreement between Experian Limited and the recipient Experian Limited
(registration number 653331) Registered office: Talbot House, Talbot Street,
Nottingham NG80 1TH
Although Experian has taken reasonable steps to ensure that this
communication and any attachments are free from computer virus, you are
advised to take your own steps to ensure that they are actually virus free.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ssh-sftp-perl-users mailing list
Ssh...@li...
https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
|