Okay..now works....
Missed ls -l in my command.
it happens....with me a lot! :)
Thanks everyone for today's help especially My perl instructor Triojan. Thanks.
Now the other prob...Sorry for asking ebvery bit...but I am going ..to find wwhat is wrong!
This is my code...
#!/usr/bin/perl -w
use strict;
use diagnostics;
my $count=0;
open OUTFILE, "> /var/tmp/BIG_FILE" or die "Cannot create Big file" ;
open STREAM, "/bin/ls /var/tmp/*SED | awk '{print...
Hello,
Can you please tell me where I am missing something...
The error stats that $file is not initialised while reading instruction for opening DATA.
Thanks.
#!/usr/bin/perl -w
use strict;
use diagnostics;
my $count=0;
open STREAM, "/bin/ls /var/tmp/*SED |" or die "Could not do ls" ...
My output file is empty....why ?
use diagnostics;
use strict;
my $date=`/bin/date `;
chomp($date);
$date =~ s/[\s:]/_/g;
open STREAM, "/nas/bin/nas_fs -list |" or die "Failed to run nas_fs -list";
open OUTFILE, "> /tmp/fs_list_$date" or die "Failed to create log file";
while (<STREAM>) {...
I think the main prob here is interpretation of $file during redirection. I am not sure what will fix this.
I am trying to add/remove quots w/o a clue.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.