Web Hosting Talk







View Full Version : Perl Newbie Question


kalpin
04-07-2010, 01:06 AM
Greeting all,

I developed some perl code, but if we run it background, other user still can see it:

/usr/bin/perl /usr/local/bin/spam.pl /usr/local/etc/spamd.conf

How to remove /usr/bin/perl from process list?

I checked amavisd (which build from perl too):

clamav 5965 0.0 7.3 79600 19784 ? Ss Apr06 0:02 amavisd (master)
clamav 19828 1.3 24.0 96220 65124 ? S 12:02 0:13 amavisd (ch18-avail)
clamav 19914 1.8 23.9 96300 64788 ? S 12:08 0:11 amavisd (ch8-avail)

So, what must I do to make my background perl's program process does not contain /usr/bin/perl in process list?

Thank you and sorry for my bad english.

The Universes
04-07-2010, 03:23 AM
Why would you want to hide it from the process list?

kalpin
04-07-2010, 05:33 AM
We plan to sell our code to our customer, but we do not want our customer realize it as perl code.

mattle
04-07-2010, 12:04 PM
Compile it.

kalpin
04-07-2010, 10:17 PM
I just want remove /usr/bin/perl from the process list.

Furion
04-08-2010, 01:57 PM
You start the perl file by commandline, or running a webpage?

kalpin
04-11-2010, 10:01 PM
Hello,

by command line. Any idea?

sirdopes
04-23-2010, 12:07 PM
You would need a modified copy of ps that hides the process. Personally though, I wouldn't want to buy any software that runs hidden in the background.

eeadmin
04-24-2010, 12:39 PM
Not sure what your script does but is it possible that you could launch it only as needed from another program. So it would run intermittently in the background but it would only be visible in a short time period. Or could you create a daemon or service that runs, but isn't really the guts of the code. Of course, that all seems excessively complicated.