6 messages in com.perforce.perforce-user[p4] Automatically updating a website...
FromSent OnAttachments
Todd Short13 Feb 2001 06:50 
Marc Unangst13 Feb 2001 08:50 
Rob Jellinghaus13 Feb 2001 09:31 
James CE Johnson13 Feb 2001 10:20 
Jon Biggar13 Feb 2001 13:12 
Matthew Rice16 Feb 2001 17:39 
Subject:[p4] Automatically updating a website when Perforce depotcha nges?
From:Jon Biggar (jo@floorboard.com)
Date:02/13/2001 01:12:43 PM
List:com.perforce.perforce-user

James CE Johnson wrote:

<off_topic>

I love Perl as much as the next guy but you're using an elephant gun to kill a mouse here... The system() function has to create a shell process to execute the command you're giving it. Use a shell script instead to save a few cycles:

while true do p4 sync //depot/... sleep 120 done

Actually, perl is smart enough to avoid spawning a shell from system() if the strings that you pass it don't contain any shell meta-characters...