Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl script crashing at lockfile ?

by robartes (Priest)
on Oct 01, 2003 at 12:00 UTC ( [id://295580]=note: print w/replies, xml ) Need Help??


in reply to Perl script crashing at lockfile ?

If by 'stopping' you mean 'just sitting there and doing nothing usefull' (as opposed to 'exiting'), than have a look at the man page for lockfile on your system. The system function does not return until the spawned program, lockfile in this case, returns.

If your system call is not returning, that means the lockfile process is not returning. Take a look at that.

File locking is a tricky field that is very susceptible to portability issues. You might have been bitten by one of them.

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: Perl script crashing at lockfile ?
by peterr (Scribe) on Oct 01, 2003 at 12:15 UTC
    Hi,

    Yikes, .. I just used CPanel to check on the installed Perl modules, and I couldn't find lockfile or system, so I guess I'm going to have to change the code.

    Thanks,

    Peter

      Whoa, hang on there.

      system is a perl built-in function, so you do not need any modules installed to have it available.

      lockfile is part of your operating system software (well, that's not technically completely accurate, but close enough), so it has nothing to do with Perl in itself.

      Back out of that alley you've gone down and look for the solution in another direction :). Your problem is most probably situated in different behaviour of lockfile between your original and current systems.

      CU
      Robartes-

        >>Your problem is most probably situated in different behaviour of lockfile between your original and current systems.

        Besides Perl, all the other software (Apache, MySQL, PHP, etc, etc) on the previous website, was VERY old, ... well a considerable number of releases back.

        Peter

      lockfile(1) is part of the OS. system() is part of Perl. Neither are Perl modules. Regardless of your lack of understanding of what your code is doing to what and where your analysis of the required actions is correct.

      Suggestion. SSH into the shell and deal with your server like a (man/woman/real hacker).

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-29 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found