in reply to Re^3: Using SSH and SCP in a perl script with taint flag
in thread Using SSH and SCP in a perl script with taint flag
Genius! Thanks very much! Is there anything special I need to do to get this to work when running the script as www-data? On the command line (to emulate running the webform) I run it as follows: sudo -u www-data perl -T test but get an error message: Can't ssh to host: unable to create ctl_dir /var/www/.libnet-openssh-perl
This might be more of a general Linux question, in which case I apologise. I am able to ssh as the www-data outwith the perl script though, so I don't know what is wrong.
Thanks very much for your advice, you seem to know a lot about using this module and I'm very, very new to this sort of thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using SSH and SCP in a perl script with taint flag
by salva (Canon) on May 29, 2015 at 13:54 UTC |