in reply to Address Bind issue reincarnation

I have to start with the obvious...

What does 'netstat -a |grep 7890' give you? Is it possible that another copy of the script is running, using that port? The 'address in use' error is pretty straightforward usually.

On a side note, if you didn't already know, running a script (permanently) out of /tmp can be dangerous... some systems have a built-in cron job that deletes anything 7 days old (or less, depending on the system) that is in /tmp. I figure you're just testing now though, but wanted to mention nevertheless.

Replies are listed 'Best First'.
Re^2: Address Bind issue reincarnation
by sajanagr (Acolyte) on Jul 16, 2010 at 05:39 UTC
    Hi

    Thanks for the reply.

    The netstat command doesn't show me anythin but when i do 'netstat -ap | grep sajan'.. i get =>

    tcp 0 0 *:sajan *:* LISTEN 3002/xinetd

    I know that this service is already using this port, but whats the other alternative to use my script as a daemon.

    /tmp/server.pl & is an option.. but i wanted something better if possible.

    Thanks for telling me about /tmp.. I am currently just testing the script, so the final script won't be lying there. But, thanks for letting me know that