Re: File Size Calculator

2004-08-10 Thread SilverFox
Jose Alves De Castro wrote: On Mon, 2004-08-09 at 14:53, David Dorward wrote: On 9 Aug 2004, at 14:34, SilverFox wrote: Hi all, I'm trying to writing a script that will allow a user to enter a number and that number will be converted into KB,MB or GB depending on the size

File Size Calculator

2004-08-09 Thread SilverFox
Hi all, I'm trying to writing a script that will allow a user to enter a number and that number will be converted into KB,MB or GB depending on the size of the number. Can someone point me in the right direction? Example: user enter: 59443 Script will output: 58M SilverFox

Variable matching.....

2004-03-09 Thread SilverFox
Hi all, I'm trying to figure out how can I check if a variable matches the first 5 digits of the line below without removing anything from the line. 13384 R 20020920 N Gatekeeper, The Silver Fox -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

checking duplicates

2003-12-30 Thread SilverFox
Hi all, i'm trying to figure out how I can check for duplicates entries in an array and remove the duplicate. Example: 23,23,39,40,44,44 should result in: 23,39,40,44 I'm reading from a file and assigning it to an array. Silver Fox -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Playing with Numbers

2003-11-10 Thread SilverFox
Hi all, i'm trying to figure out how to test if a number is five digits and if not add zero/s in front to make it 5 digits. Any ideas? Examples: 444 = 00444 4120 = 04120 23 = 00023 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

command-line

2003-11-01 Thread SilverFox
hey guys, i'm trying to grep some data from a log file and getting the following error. Any ideas??? [EMAIL PROTECTED] perl -e 'grep \Eliminating movie\ update.log |awk {'print \$5'}'; Can't find string terminator '' anywhere before EOF at -e line 1. -- To unsubscribe, e-mail: [EMAIL

slice and dice them

2003-09-30 Thread SilverFox
can anyone tell me how I can remove the period at the end of each line below?? . . . . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

who's the master????

2003-09-30 Thread SilverFox
hey guys, I'm trying to figure out how to stripe Anything Else, 7:15pm and 9:50pm from the below html code. Any ides? tdfont class=smalllista href=/showtimes/movie.adp?movieid=16038date=20030929theaterid=757 Anything Else/a nbsp;nobr(R, 108 min.)/nobrbra

Re: who's the master????

2003-09-30 Thread SilverFox
Thanks budwill look into that.. Ramprasad A Padmanabhan wrote: Silverfox wrote: hey guys, I'm trying to figure out how to stripe Anything Else, 7:15pm and 9:50pm from the below html code. Any ides? tdfont class=smalllista href=/showtimes/movie.adp?movieid=16038date=20030929theaterid

Cutting Variable

2003-08-17 Thread SilverFox
Hi all...how can I pull the number from the given path?? /Machine4/dir/dir/dir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: :Telnet

2003-08-17 Thread SilverFox
David Storrs wrote: On Mon, Aug 11, 2003 at 09:42:40AM -0400, Stephen Gilbert wrote: -Original Message- From: SilverFox [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 4:58 PM To: [EMAIL PROTECTED] Subject: Net::Telnet hey anyone know how to check if a file

Re: Cutting Variable

2003-08-17 Thread SilverFox
Jeff 'Japhy' Pinyan wrote: On Aug 17, SilverFox said: Hi all...how can I pull the number from the given path?? /Machine4/dir/dir/dir Well, it's a little vague, but perhaps all you want is my ($num) = $path =~ /(\d+)/; Or perhaps my ($num) = $path =~ /Machine(\d+)/; Cool

Net::Telnet - Variable won't change

2003-08-14 Thread SilverFox
Hey can someone help me figure out why the value of $file_exists won't change even when the file is mssing Thx. #!/usr/bin/perl -w $out=/home/laptop/scripts/perl/logs/resetmf.log; open OUT, $out or die Unable to open $out :$!; @site=(Machine1,Machine2); #telnet use Net::Telnet; $t = new

Re: Net::Telnet - Variable won't change

2003-08-14 Thread SilverFox
Jeff Westman wrote: --- SilverFox [EMAIL PROTECTED] wrote: Hey can someone help me figure out why the value of $file_exists won't change even when the file is mssing Thx. #!/usr/bin/perl -w $out=/home/laptop/scripts/perl/logs/resetmf.log; open OUT, $out or die Unable to open $out

Net::Telnet

2003-08-14 Thread SilverFox
hey anyone know how to check if a file exists using the Telnet module? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

File search (Help!!!!!)

2002-11-10 Thread SilverFox
Hi all, I'm looking for the best way to search/test multiple directories for a specific file and exec a command depending on which directory is missing the file. any advice? ex: (I'm searching for filename in the following dir) /dir1/file/search /dir2/file/search /dir3/file/search/filename

Re: Net::AIM error

2002-10-07 Thread SilverFox
Sanko Robinson wrote: Silverfox wrote... : hey All, am trying to use the Aim module and getting this error: : Code = : #!/usr/bin/perl -w : : use Net::AIM; : $aim = new Net::AIM; : $aim-newconn(Screenname ='anything', : Password ='duh

Re: Net::AIM error

2002-10-07 Thread SilverFox
Sanko Robinson wrote: Silverfox wrote... : hey All, am trying to use the Aim module and getting this error: : Code = : #!/usr/bin/perl -w : : use Net::AIM; : $aim = new Net::AIM; : $aim-newconn(Screenname ='anything', : Password ='duh

Re: Net::AIM error

2002-10-07 Thread SilverFox
Silverfox wrote: Sanko Robinson wrote: Silverfox wrote... : hey All, am trying to use the Aim module and getting this error: : Code = : #!/usr/bin/perl -w : : use Net::AIM; : $aim = new Net::AIM; : $aim-newconn(Screenname ='anything', : Password ='duh

Net::AIM error

2002-10-06 Thread SilverFox
called handler for object. at ./aim.pl line 0 -- Please reply to [EMAIL PROTECTED] ~SilverFox -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]