[ic] Running a system command in a perl tag?

IC ic at tvcables.co.uk
Sun Jan 20 14:26:41 UTC 2013


Hi folks,

I am trying to run a system command within a perl tag but it always returns
-1 (fail)

The command I want to run is "csf -d xxx.xxx.xxx.xxx" where the xxx is an ip
address, I am using (xxx being an ip address):-

[if scratch needs_block eq "1"]
[tmp blockstatus]
[perl]
my $status = system("csf -d xxx.xxx.xxx.xxx");
return $status;
[/perl]
[/tmp]

[scratch blockstatus] 
[/if]

There is no error in the log, it just doesn't work and returns -1

Thanks,
Andy





More information about the interchange-users mailing list