Sysopen fails...

2004-04-28 Thread Mauro
: No such file or directory at ./sparse_file line 3. Why do I get this error? A file named "BAD_SPARSE_FILE" doesn't exist... Thank You Mauro

sysopen fails

2004-04-28 Thread Mauro
: No such file or directory at ./sparse_file line 3. Why do I get this error? A file named "BAD_SPARSE_FILE" doesn't exist... Thank You Mauro -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

How to change @INC

2004-04-28 Thread Mauro
Hi all, I'm tring to load a module with: use Fcntl; but I get an error like: Can't locate Fcntl.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .) at ./sparse_file line 3. BEGIN failed-

array assignement

2004-10-14 Thread Mauro
of special character... Thank You Mauro -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: array assignement

2004-10-14 Thread Mauro
on" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 14, 2004 12:19 PM Subject: Re: array assignement > Mauro wrote: > > I want to assign to an array the output of operating system > > command: /usr/bin/ssh [EMAIL PROTECTED] sar -u 1 1|awk '/%

Re: array assignement

2004-10-14 Thread Mauro
Ok guy I solved my problem. The correct line was: my @pippo = qx/ssh [EMAIL PROTECTED] sar -u 1 1|awk '\/\%usr\%sys \%wio \%idle\/ { getline ; printf "\%s \%s \%s \%s\\n", \$2, \$3, \$4, \$5 }'/ ; I had problem because perl try to undertand what meant "@ and / and

how to assign an external command aoutput to an array

2004-10-15 Thread Mauro
I have to assign output of ssh [EMAIL PROTECTED] sar -u 1 1|awk '/%usr%sys%wio %idle/ { getline ; printf "%i %i %i %i", $2, $3, $4, $5 }' to an array. The output looks like: 0 0 0 100 if I did: my @pippo=qx'ssh [EMAIL PROTECTED] sar -u 1 1|awk \'/%usr%sys%wio %idle/ { getline ; pr

Re: how to assign an external command aoutput to an array

2004-10-15 Thread Mauro
Ok Ok i found solution: my $got_value=qx'.'; my @values=split / /,$got_value: Thank You - Original Message - From: "Mauro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 15, 2004 9:23 AM Subject: how to assign an external c

perl and rrdtool changing directory problem

2004-10-19 Thread Mauro
can't use with RRDs::graph a file name with path. I tried with chdir and opendir command to try to change current directory but without success. Have you ever found this problem with rrdtool? Thank You Mauro

How to finding sting in an array

2004-11-17 Thread Mauro
Hi all, I have to check if $mystring is an elemen of @myarray or not. Which is the quickest way to do this? Thank You Mauro

How to monitor a scritp

2004-11-23 Thread Mauro
Hi all, I made a script that works fine. When a try to run it in crontab it seems it doesn't work. It makes an empty output log. I checked for correct path in external command I run into script because I know crontab hasn't got any environment variable but pheraps I forgot to check something... H

wrong execution of "or"

2005-01-11 Thread Mauro
explain me why it seems to execute correctly the system command and also ti dies? Thank You Mauro * main::(./get_values_CX700.pl:37):

CGI.pm and form creation

2005-01-17 Thread Mauro
orm(), "Nothing to it!\n", end_html; I don't understand why apache tells:"action="/c: /usr/lib/cgi-bin/make_graph_CPU_form.pl.cgi" when the form prints out "" Could you help me? Thank You Mauro

create a cryptoloop from a perlscript

2005-09-11 Thread Mauro Stettler
hi together im writing a perlscript which should be able to create a cryptoloop onto a device. the console command to do this is losetup /dev/loo0 /dev/sdb1 -e twofish-256, then i am asked for a password... the problem is, this password is requested by the function getpass(), i don't know how i ca

Re: create a cryptoloop from a perlscript

2005-09-11 Thread Mauro Stettler
2005/9/12, John W. Krahn <[EMAIL PROTECTED]>: > Mauro Stettler wrote: > > hi together > > Hello, > > > im writing a perlscript which should be able to create a cryptoloop > > onto a device. the console command to do this is losetup /dev/loo0 > > /dev/

Re: create a cryptoloop from a perlscript

2005-09-12 Thread Mauro Stettler
2005/9/12, Mauro Stettler <[EMAIL PROTECTED]>: > 2005/9/12, John W. Krahn <[EMAIL PROTECTED]>: > > Mauro Stettler wrote: > > > hi together > > > > Hello, > > > > > im writing a perlscript which should be able to create a cryptoloop >