Greetings, I wish to use the fork() function on one of my scripts. I would like more clarity on the way it works.
Take for instance the ff code: Sub mysub { while (<THATFILE>) If ($_ eq "SCANME") { fork() system("nessus" "thathost"); print "Forked!\n"; } Else { fork() system("nmap", "-sS", "-T", "insane", "mynetwork") print "Forked on else\n"; } close THATFILE; } What I would like to know when I do the fork on the if statement, does the child just do the stuff under if block & exit?? What happens exactly? Is this the right way of doing this? Langa Kentane | Tel: +27 12 672 7209 Security Engineer | Cell: +27 82 456 2219 Nanoteq (PTY) LTD | PGP Key ID: 0x771B0480 NOTICE: This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify the sender at Nanoteq (Pty) Ltd immediately, telephone number +27 (0) 12 672 7000. Any unauthorised use, alteration or dissemination is prohibited. Nanoteq (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]