mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
10 lines
250 B
Bash
10 lines
250 B
Bash
#!/bin/bash
|
|
|
|
username=$1
|
|
schedule=$2
|
|
command=$3
|
|
|
|
# Get the user's crontab, filter out the specific command and schedule, and install the updated crontab
|
|
crontab -u $username -l | grep -v -F "$schedule $command" | crontab -u $username -
|
|
|
|
echo "done!"
|