Search Results

Search: Posts Made By: sstrahm001
7,853
Posted By sstrahm001
Everything worked as intended. Thanks for all the...
Everything worked as intended. Thanks for all the help.
7,853
Posted By sstrahm001
So i can put in 59 23 * * *...
So i can put in
59 23 * * * /usr/sbin/pixmove.sh && /bin/systemctl restart rsyslog.service

This will make pixmove.sh run, and after it finishes correctly, restart rsyslog at 11:59pm. Making sure...
7,853
Posted By sstrahm001
I finally figured it out. Cron wont run the...
I finally figured it out.

Cron wont run the restart command if its inside the script, but it will if it is in cron itself. So, I set it up like this 00 00 * * * /bin/systemctl restart...
7,853
Posted By sstrahm001
I was using sudo as I'm pretty much a newbie when...
I was using sudo as I'm pretty much a newbie when it comes to anything linux (I created this post before seeing there was a newbie section). I read somewhere its what I should do so I did it.

Ill...
7,853
Posted By sstrahm001
Ok, so the copy and move part is good but not the...
Ok, so the copy and move part is good but not the sudo part.

So what would be the command to ether shut off and then turn on rsyslog or to just restart rsyslog? The rsyslog need to be restarted...
7,853
Posted By sstrahm001
It says I need a tty to run sudo.
It says I need a tty to run sudo.
7,853
Posted By sstrahm001
Cron won't restart rsyslog
Howdy,

I am nearly tearing my hair out as Cron isn't running a script that should work.

I am interning for a company. Their rsyslog keeps track of traffic that gets past a firewall. It creates...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 10:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy