call a shell script for every file uploaded

XUpload related questions

Moderator: admin

Message
Author
giorrrgio
Posts: 8
Joined: Aug 04, 2008 11:11 am

call a shell script for every file uploaded

#1 Postby giorrrgio » Sep 26, 2008 3:01 pm

Hi,
I'm trying to call a shell script for every file uploaded using the system() function:

Code: Select all

for my $f (@files)
{
my @args;
@args = ("command", "arg1", "arg2");
system(@args);
}


But it doesn't seem to work.
Am I missing something? Is there a correct way to perform this?
Thanks
Giorgio

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Oct 06, 2008 10:28 am

Hmm...sometimes server policy do not allow shell probrams execution from scripts.
Create some small test script to figure this out.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests