[Solved] howto place script for cronjobs // howto add a simple cronjob?

2 Posts
2 Users
0 Reactions
23 Views
(@linux_user)
New Member
Joined: 2 Jahren ago
Posts: 1
Topic starter  

Dear support. 

Plan is simple. And here it is:

sudo nano removed link

 

#!/bin/bash

sudo shutdown -h now

sudo chmod +x removed link

sudo crontab -e 

7 06 * * 1-5 removed link

7 22 * * 1-5 removed link

7 23 * * 6-7 removed link

And here comes why,

i want to save money about energy comsumtion. 

the most of the Day im not at home. 

power on is realized by a time energy clock. i didnt know the english word. timerclock for power. it turns the router and eBlocker on and off. but ones the pi (my hardware for eBlocker) is started i must shutdown him before the timeclock for the power do the electric off.  can you tell me please how to ad a cronjob? 

i hope for help. 

second thing is at night the system Fan is too mutch loud. i can‘t sleep. 

i must a this cronjobs. pleas tell me a way. 

greetings from Germany. 

(i was a live time  license Member befor open source comes)

Client OS
Browser
eBlocker hardware
Client OS version
Browser version
eBlockerOS version

   
ReplyQuote
(@random)
Illustrious Member Admin
Joined: 6 Jahren ago
Posts: 2060
 

@linux_user I fear, your question is beyond the scope of this forum as we do not support changes on OS level.

BTW: There is absolutely no need for a fan when running eBlocker and you might rather want to save this fan energy instantly by disconnecting it👍

Remember: powering up and down eBlocker will cause lot of data being written (to onboard eMMC in case of a white cube). This is likely to damage eBlocker‘s eMMC/SD much more than just keeping it running (as most action takes place in RAM then).  

So if I were you, I‘d do the math how much energy you‘d save in a year. Over time risking to break eBlocker (also with your cron jobs) is much higher than saving a few cents, I belive. Honestly, as an unexperienced user, I‘d therefore rather step back from the idea…

Nevertheless, we love skilled hackers. To get root access see here. The rest should be straight forward as it‘s just linux 😉 😎 

THX!


   
ReplyQuote

Nach oben scrollen