Re: running a shel script within a perl cgi script

2011-11-09 Thread David Christensen
On 11/09/2011 04:57 AM, Agnello George wrote: I am trying to run a shell script within a perl cgi script , however it is not getting executed . cat /vae/www/cg-bin/syscscript.pl my $openvpn = `ps aux |grep openvpn |grep -v grep`; unless ( $openvpn) { system(" /usr/sbin/openvpn /etc/openvpn/DC.ov

Question regarding GpgME.pm

2011-11-09 Thread Daniel Patrick Sullivan
Hi, All, Has anybody on this list even successfully implemented Crypt::GpgME to either encrypt or decrypt some data? I am a bit confused as from what I can tell the function list does not have the ability to decrypt... http://search.cpan.org/~flora/Crypt-GpgME-0.09/lib/Crypt/GpgME.pm#edit Thank

Re: running a shel script within a perl cgi script

2011-11-09 Thread Luca Cappelletti
On Wed, Nov 9, 2011 at 13:57, Agnello George wrote: ... > my $openvpn = `ps aux |grep openvpn |grep -v grep`; > unless ( $openvpn) { > system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn "); > } > > - > cat > > do the httpd daemon permit you to run something outside it's own scope? I had similar p

running a shel script within a perl cgi script

2011-11-09 Thread Agnello George
Hi I am trying to run a shell script within a perl cgi script , however it is not getting executed . cat /vae/www/cg-bin/syscscript.pl : : my $openvpn = `ps aux |grep openvpn |grep -v grep`; unless ( $openvpn) { system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn "); } - cat When i run this f

Re: round to the nearest 10 or 100

2011-11-09 Thread Dr.Ruud
On 2011-11-08 20:02, Noah wrote: I am trying to round to 10 or 100 for particular values so the following numbers 530 570 would become 500 600 perldoc -q round perl -wle ' print sprintf q{%.0f00}, $_ / 100 for 530, 570, -530, -570; ' -- Ruud -- To unsubscribe, e-mail: beginners-un