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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: vptl
  • Order by date
  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...
  16. vptl

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

    I solve the ambigus redirection prob by adding back slash to $file in redirection statment...now next one is the open function fails and I have no clue why ? may be the no. of char limitation ? ================================ readline() on closed filehandle main::FS_LIST at /tmp/k line 12 (#1)...
  17. vptl

    What is wrong with this lines

    Michael, Thanks.Yep the "." operater did help. What I am trying to do is replace all the space and ":" from date cmd o/p with "_" so that I can create a file with that ext. I tried your sed syntex and it did not getnerate the o/p. I know I am useing two sed , b/c I do not know how to use "|"...
  18. vptl

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

    Hi Trojan, Thanks for quick response.! Not sure what is causeing the prob..Ithink chomp is not the prob..which I was thinking abt...but something is not right... I get I will create /tmp/fs_list_Fri_Jun__3_12_41_16_EDT_2005 sh: $file: ambiguous redirect readline() on closed filehandle...
  19. vptl

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

    my $file=q(/tmp/fs_list_).$date; chomp($file); if ( -f $file) { trying to understand if I use my <variable> is that the final I canot change it ?
  20. vptl

    What is wrong with this lines

    my $date=`/bin/date| sed -e s/" "/_/g |sed -e s/:/_/g`; my $file=q(/tmp/fs_list_$date); Thanks,

Part and Inventory Search

Back
Top