Hello, I have a strange problem with a script that should be executed by a cronjob. The script would count the number of visits a website receives daily. For...
Make sure you run as the correct owner of that file That is xyz /usr/bin/perl scriptname It should be same as who u run as from the command line.. -prak ... ...
prakash
prakash@...
Jun 1, 2005 8:45 pm
21154
It wouldn't hurt to check to ensure you opened the files. ie: open (YDAY_CNT, "/home/art/public_html/lg/tod_cnt.dat") or die "unable to open file: $!"; Make...
Brad Lhotsky
brad@...
Jun 1, 2005 9:16 pm
21155
I don't have a full answer for this but I might have a clue or two. I think that cron does not have all of the same settings that a normal user would have. So...
Hi all, I am writing a script for renaming files, but one which takes regular expressions from command line - something like mmv "sequence(\d+).tga"...
Since I have only an username to access to the site, I suppose to have all the permissions to edit my own directoires. I have an hosting account, so "art" is...
I forget something... Even if I run the script from the comand line as perl /home/art/public_html/cgi-bin/puthit.pl I get the same strange results! Only if I...
... means to take the string $dest and substitute in it the regexp $regex1 to nothing. Part of $regex1 is the literal string "sequence" which does not exist in...
Offer Kaye
offer.kaye@...
Jun 2, 2005 6:37 am
21160
thanks kaye, I consulted a friend(^expert^) of mine and he gave me one solution around this.Here a small test code that he wrote to clarify the point... ...
Greetings, I am trying to read an Excel file. My environment is Windows XP - SP2 and Excel is from Office 2003. I have taken the code from the Active State...
Hi, I just recently did some code for a customer that needed to bring in information from an Excel s/sheet. I used the module 'Spreadsheet'. Here's a piece of...
Hi, For the script to be execute as cronjob. 1. Check whether are you using user env variables in your program. Load them at the start of the crontab file. ...
mail meda
mailmeda@...
Jun 2, 2005 2:52 pm
21164
Hello, I checked permissions of the files and add die function, and now problem is solved. Thanks you all Alph ... permissions to ... a ... results, 0 ... line...
Thanks Kaye, I also consulted a friend(^guru^) of mine, and he offered me the following solution: #!/usr/local/bin/perl my @files = `ls -1`; foreach my...
Hi all, In a perl script, I'm warning the users with USAGE which contains filename.. I want to it to be changed if the file is renamed.. how to do it? is there...
... error "Can't ... read ... value ... and ... the ... For ... $dt = sprintf "%.4f", $t - $t1; I think this may fix your problem. I'm not familiar with the ...
You are telling the program to use the module, but you have not created a new object method. ... To use $t like this you must declare $t as a Math::Bigfloat...
HI, How can I get the PID (process ID ) of the current process?? I referred the perlfunc manpage, but it says about getppid function in Perl, which can get the...
... Use the special Perl variable $$ or the getpid() function from the POSIX module: http://perldoc.perl.org/perlvar.html#%24PID ...
Offer Kaye
offer.kaye@...
Jun 6, 2005 8:22 am
21175
Hi All I am new to Perl and I am into Testing ,I want to Get into Perl Automation Testing.So please Can any one Help me I want to Know How do u use perl in...
If youre in a unix system you may try and parse the contents of /proc/self/ directory such as /proc/self/stat which has fields especifying the process´ id as...
Hi. I have a script built that takes a list of stock tickers, LWP's a couple pages based on each of them, and then generates a final analysis. My problem is it...
... Dear David, Steps to achieve that are: 1. $|++ to ensure no buffering. 2. Output a textbox or gif processing animation to the user before your LWP ...
HI, I have one question on strings. Suppose, I have: $check = "abcde"; Now, is there a way to access each character of the string $check, ie I want to get only...
Hi all, sorry for posting offtopic message... In smtp.. after establishing telnet connection with mail exchange server.. and after giving series of commands...
... You probably want to use the split() function: @characters = split //, $check; What do you intend to do, though? -- Jeff "japhy" Pinyan % How can...