I scheduled a task (a SAS job) in Putty for next week, but this task is required to stop.
I tried killall -9 but it did not work, and the task is still existing there.
I wonder is there any way to delete this scheduled task in Putty.
Dale K
28.1k15 gold badges60 silver badges86 bronze badges
2 Answers 2
The following code removes the scheduled task:
at -r taskname
CPPUIX
2,4278 gold badges18 silver badges38 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Dale K
You can accept your own answer.
first grap the PID of the job
ps -ef | grep sas
then kill it with
kill -9 PID
replace the PID with the PID you get from the first command
1 Comment
jeff
this code can only stop the running section, not the scheduled task which is not running yet