Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vptl

  1. vptl

    What is wrong with this script...going no where....

    Yes you are correct I had to do that also. Thanks Varakal.
  2. vptl

    What is wrong with this script...going no where....

    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.
  3. vptl

    What is wrong with this script...going no where....

    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...
  4. vptl

    What is wrong with this script...going no where....

    Got it.! while (my $file=<STREAM>).
  5. vptl

    What is wrong with this script...going no where....

    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" ...
  6. vptl

    What is the port called where we connect RA cable on MCData switch ?

    Hi, Do we have to use any special convention in naeming the port which connects to RA link ? Thanks. Vimal.
  7. vptl

    Command to find out ZONE info.

    Thanks for you effort. Will try and seek your help if needed.
  8. vptl

    When I use my $file ..can I still do chomp($file) ?

    I 100% agree....I am a ksh guy...so it may take a while to clean the slate! :)
  9. vptl

    When I use my $file ..can I still do chomp($file) ?

    Ok now I learned it...I have to do print OUTFILE "TEXT\N"; Trojan, Thanks a lot for your continued support.
  10. vptl

    When I use my $file ..can I still do chomp($file) ?

    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>) {...
  11. vptl

    When I use my $file ..can I still do chomp($file) ?

    Works....cool...As alway...thank you SIR!.
  12. vptl

    When I use my $file ..can I still do chomp($file) ?

    still in my out put stream there is a blank line at the end causing prob ... in other words how do I do this.... next if /(?:root|name|^$)/ ;
  13. vptl

    When I use my $file ..can I still do chomp($file) ?

    I need to genrate a file for the record keeping as to what was my raw material for the test was !
  14. vptl

    When I use my $file ..can I still do chomp($file) ?

    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.
  15. vptl

    When I use my $file ..can I still do chomp($file) ?

    Results... Code: ============================================== use diagnostics; my $date=`/bin/date| sed -e s/" "/_/g |sed -e s/:/_/g`; chomp($date); $file='/tmp/fs_list_'.$date; if ( -f $file) { system(qq!/bin/rm $file > /dev/null 2>&1!); } else { print "There is no $file exists...safe to...

Part and Inventory Search

Back
Top