- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
You can use bash infinite loops with the while loop like while true; do echo "test"; sleep 60; done
There are a lot of ways to list services in a Linux or Ubuntu system. But If you also want to list services status "systemctl list-units" will work for your case perfectly.
No. You shouldn’t write a bash script. Just use the cp command bulk copy feature and provide all files you want to copy and add the path which is the destination. cp file1 file2 file3 /mnt/backup
You can use the shutdown command + option like below. $ sudo shutdown -h +3
It is very easy just put the script file path after the ssh command like below. ssh [email protected] 'bash -s' < cat myscript.sh
There are different functions and ways to match a word in PHP. Best way is using preg_match() function. In the following example we will search the forum word in the $bigtext content. preg_match('/forum/',$bigtext)
The End.