tags:

views:

54

answers:

2

Is there anyway to use atrm command to remove queue job from PHP web application? I wrote a shell script to remove the queue job but it doesn't work well.

#! /bin/sh

export PATH=/usr/local/bin:$PATH

echo atrm 3700 2>&1
A: 

Try atrm 3700 2 > &1 without echo

S.Mark
A: 

You can try doing:

echo exec('export PATH=/usr/local/bin:$PATH ; atrm 3700 2>&1');
codaddict