How to I write a script that runs another script and restarts that script every 30 seconds?
So what I am looking for
[syntax=text]script_1 ->runs-> script_2;
script_1 ->lets run for 30 seconds-> script_2;
script_1 ->kills-> script_2;
repeat;[/syntax]
Bash/SH help
Re: Bash/SH help
You are after an infinite loop of executions every 30 seconds ?
[syntax=text]#!/bin/bash
while true
do
echo "Just keep running..."
sleep 30
done
exit 0[/syntax]
You could call another script using bash
[syntax=text]bash file_name.sh[/syntax]
hope that helps
[syntax=text]#!/bin/bash
while true
do
echo "Just keep running..."
sleep 30
done
exit 0[/syntax]
You could call another script using bash
[syntax=text]bash file_name.sh[/syntax]
hope that helps