Search Results

Search: Posts Made By: methos
3,455
Posted By methos
force use of specific Perl library
I am calling a Perl script that uses Net::FTP; from Oracle's Concurrent Request Manager and it fails becuase Oracle's version of Perl doesn't include the NET::FTP library's. The AIX box the script...
4,831
Posted By methos
basename worked great! Thanks a ton. After gave...
basename worked great! Thanks a ton. After gave me the direction (ie answer) I found that basename is both a PERL and a Unix command.

Thanks again for the quick response.
4,831
Posted By methos
parse a string variable
Hello all, need a little help.

I have an input variable such as ARGV[0] which equals something like

/use/home/name/script/test.dat

I need to be able to get just the "test.dat" (i.e. the file...
21,032
Posted By methos
Thanks for the info. I came up with this as I...
Thanks for the info. I came up with this as I continued to pound away at it.

next if (($fsize = $ftp->size($ntfile)) == undef);

I have to check the file size anyway, if the file does not...
21,032
Posted By methos
perl ftp check file exists
I have a perl script that ftp's to an NT server, checks if the file is growing, gets the file, does some more size checking after the get on the unix box. My question, is there a good way to check...
19,437
Posted By methos
Sorry about that, I can be pretty thick. ...
Sorry about that, I can be pretty thick.

Thanks for your help.
19,437
Posted By methos
This doesn't seem to be picking up the value,...
This doesn't seem to be picking up the value, perhaps I am not understanding something correctly. Here is what I have regarding your suggestion.

#!/usr/bin/perl


`head -1 /home/crecker/a.dat...
19,437
Posted By methos
PERL, extract value between double quotes
I know this is probably much simplier than I am making but I need some help please. I have a data file that contains a value on the first line between double quotes ("00043"). I need to assign the...
9,058
Posted By methos
I got it to where I can pass in a variable, still...
I got it to where I can pass in a variable, still don't know why it is less than the number of occurances though. thanks everyone.

csplit -f small.head -n 4 MOORDERS '%^COHEAD%' '/^COHEAD/' {$1} ...
9,058
Posted By methos
Thanks, but I don't quite understand what you...
Thanks, but I don't quite understand what you mean. The "4" I am referring is the one at the end of the statement. When I change this value, it outputs more or less files, that is unless I am...
9,058
Posted By methos
Thanks to everyone for all the help. I do have a...
Thanks to everyone for all the help. I do have a few questions. I am using the csplit command such as the following

csplit -f small.head -n 4 MOORDERS '%^COHEAD%' '/^COHEAD/' '{4}'

My...
5,610
Posted By methos
I figured it out, it was actually because I was...
I figured it out, it was actually because I was not formatting showtime

while (&showtime(HHMM, 1) < 1422)


Thanks
5,610
Posted By methos
help with perl while loop
Can anyone tell me why this program won't kick out when the time gets beyond time in the loop?

sub showtime
{
local($format,$military)=@_;
...
9,058
Posted By methos
Thanks for all the help :) it really works slick!
Thanks for all the help :) it really works slick!
9,058
Posted By methos
I am really not familiar with awk. Thanks for...
I am really not familiar with awk. Thanks for you suggestions. With the awk and ^MSG_HEAD, I understand that it will write the entire line, but will it write all the lines that follow until it hits...
9,058
Posted By methos
remove portion of file
Can anyone tell me how to remove a portion of a large file to smaller ones? What I have is a large file that was created becasue several similar files were joined together. Each individual file...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 04:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy