XUpload - call a shell script for every file uploaded

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: 2186
Joined: Mar 22, 2006 1:39 pm

#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.