Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!mailrus!cwjcc!hal!nic.MR.NET!umn-cs!dayton!joe From: joe@dayton.UUCP (Joseph P. Larson) Newsgroups: alt.sources Subject: Hide: deceive all those nosy "ps -ef" calls. Message-ID: <6605@dayton.UUCP> Date: 13 Jun 89 18:18:51 GMT Reply-To: joe@dayton.UUCP (Joseph P. Larson) Distribution: alt Organization: Dayton-Hudson Dept. Store Co. Lines: 41 This is a *very* short program I wrote once when I wanted to screw around a little without advertising the fact to anyone doing a "ps". The program I wanted to call just needed to be called -- no arguments or anything on it. So I wrote "hide". You call hide as such: hide This really is kinda dumb, but I had a few minutes during a compile/test sequence.... -Joe (Oh. It's SysV, but I bet it works on most Unix-like machines.) #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # hide.c # This archive created: Tue Jun 13 13:12:55 1989 export PATH; PATH=/bin:/usr/bin:$PATH if test -f 'hide.c' then echo shar: "will not over-write existing file 'hide.c'" else cat << \SHAR_EOF > 'hide.c' main(argc,argv) int argc; char **argv; { execl(argv[1], argv[2], 0); } SHAR_EOF fi exit 0 # End of shell archive -- Life is a cabaret (old chum). UUCP: rutgers!dayton!joe (Picts 1-13 are DHDSC - Joe Larson/MIS 1060 ATT : (612) 375-3537 now ready.) 700 on the Mall, Mpls, Mn. 55402