but echoing the command to "at now" does start a new process and
worked beautifully.
On Wed, Jul 31, 2013 at 4:41 AM, Simon Geard wrote:
> On Tue, 2013-07-30 at 14:04 -0600, Jeff Sadowski wrote:
>> exec /bin/bash -c "$0 test" &
>
> Running it with exec means you're not starting a new process, ju
On Tue, 2013-07-30 at 14:04 -0600, Jeff Sadowski wrote:
> exec /bin/bash -c "$0 test" &
Running it with exec means you're not starting a new process, just
overwriting the current one. Same PID, so NM will still kill it...
Simon.
___
networkmanager-lis
Found a work around sending the task to "at now" completed it.
The following counts all the way to 24
<---start of /etc/NetworkManager/
dispatcher.d/99-test script
#!/bin/bash
test()
{
x=0
while [ ${x} -lt 25 ];do
sleep 1
echo ${x} > /tmp/test
let x=${x}+1
done
}
if [ "$1" = "test" ];the
I tried having it recall itself as follows but it is still getting
killed now after 9 seconds.
updated script
<---start of /etc/NetworkManager/dispatcher.d/99-test script
#!/bin/bash
test()
{
x=0
while [ ${x} -lt 25 ];do
sleep 1
echo ${x} > /tmp/test
let x=${x}+1
done
}
if [ "$1" = "test
On Mon, 2013-07-29 at 22:35 -0600, Jeff Sadowski wrote:
> Is there any way to have it launch maybe another script that can take
> as long as it needs?
> I thought putting the script in the background would allow it to run
> till finished but it is still getting killed.
You might be able to get aro
Is there any way to have it launch maybe another script that can take
as long as it needs?
I thought putting the script in the background would allow it to run
till finished but it is still getting killed.
On Mon, Jul 29, 2013 at 10:21 PM, Dan Williams wrote:
> On Mon, 2013-07-29 at 09:35 -0600,
On Mon, 2013-07-29 at 09:35 -0600, Jeff Sadowski wrote:
> I created a simple script to show my problem.
> <---start of /etc/NetworkManager/dispatcher.d/99-test script
> test()
> {
> x=0
> while [ ${x} -lt 25 ];do
> sleep 1
> echo ${x} > /tmp/test
> let x=${x}+1
> done
> }
> test &
> <--end
I created a simple script to show my problem.
<---start of /etc/NetworkManager/dispatcher.d/99-test script
test()
{
x=0
while [ ${x} -lt 25 ];do
sleep 1
echo ${x} > /tmp/test
let x=${x}+1
done
}
test &
<--end of script
the script gets killed after 8 seconds ie:
>cat /tmp/test
8
>
I don't