Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: specifying path to files

by naikonta (Curate)
on Oct 23, 2007 at 16:35 UTC ( #646714=note: print w/replies, xml ) Need Help??

in reply to specifying path to files

You hardcode your pathnames. Do you have directory /home/hampton1/data in the target server? Putting $! in die statement could tell you right away.
open(SDATA,"$sdata")|| die("Could not open file: $!\n");
unlink $scnt;
would be sufficient instead of
if (-e "/home/hampton1/data/student_count.dat") { unlink($scnt); }
since you already assigned $scnt to /home/hampton1/data/student_count.dat, unless you care about why unlink didn't remove the file (which is another matter).

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Replies are listed 'Best First'.
Re^2: specifying path to files
by jvallee (Initiate) on Oct 23, 2007 at 16:48 UTC
    Yes I have created data folder and set all permissions.

    It's screwy- formmail writes out file (actually appends) just fine.

    Pls excuse redundent (unnecessary coding) - old habits from DB prgramming days.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://646714]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2016-10-22 03:57 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (292 votes). Check out past polls.