Jump to content


Photo

vu+duo scripts


  • Please log in to reply
10 replies to this topic

#1 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 9 January 2013 - 15:09

Hi,

I'd like to install some scripts on my vu+duo, but i'm not sure where to place them... i don't see a scripts folder, how do i do this?


I'm also am trying to add some cronjob's, what are the commands for the vu+duo? Will the cronjob lines below work for the vuduo?

reboot it a set time:

5 6 * * * reboot

Put it to standby automatically at a set time:
7 6 * * * wget -q -O /dev/null http://root:dreambox...command=standby

Re: vu+duo scripts #2 Pike_Bishop

  • Senior Member
  • 1,131 posts

+72
Good

Posted 9 January 2013 - 21:14

Hi,

i didn't have a vu+duo but i have here the xtrend et9000 and here i create the directory /usr/script and put my scripts in there.
i think you can make the same for your vu+duo.

regards
Biki3

Receiver: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3


Re: vu+duo scripts #3 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 9 January 2013 - 21:40

Yeah found out how to do that one. you place it in etc/init.d

So... cronjobs, how do you do them on the vu+duo, tried crontab-e...doesn't work! With so many savy users seeing this post there must be someone that knows how to use crond, also how to reboot and put it on standby automatically... mods?

Re: vu+duo scripts #4 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 9 January 2013 - 22:05

hmm... is cron not enabled? crontab registers, but crontab-e or anything else doesn't... whats up?

Re: vu+duo scripts #5 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 10 January 2013 - 01:19

So i was placing crontab -e, without the space inbetween... thats why cron wasn't working...

Now i'm in need of finding how to reboot and standby the vu+duo automatically... anyone care to copy and paste these on here, those in the know...?

Re: vu+duo scripts #6 Novac

  • Senior Member
  • 87 posts

0
Neutral

Posted 10 January 2013 - 10:18

Hi
Maybe this is helpfull to you.

root@VUDUO_BIO:~# shutdown
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
root@VUDUO_BIO:~#

Re: vu+duo scripts #7 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 10 January 2013 - 15:50

i need it as a cronjob... i don't know what i'm doing with this.

Re: vu+duo scripts #8 Novac

  • Senior Member
  • 87 posts

0
Neutral

Posted 10 January 2013 - 22:31

Hi again.
Read this http://kvz.io/blog/2...-using-crontab/
it is about schedule in crontab

and

Here are an example om how to create a cronjob that restats CCCam, maybe it is usefull for you.
(This is not my hack and you have to tweek it to suits your need)

These are the steps you need to make it work

1. copy the attached file cccam_restart.sh to /usr/script/ and chmod the rights to 755
2. copy the attached file crontabfile to /etc/cron/ and chmod the rights to 755
3. from telnet sesion start cron with
/usr/sbin/crond -c /etc/cron/crontabs

4. to have cron start at boot
add the line from 3. ( /usr/sbin/crond -c /etc/cron/crontabs )
to /etc/init.d/bootmisc.sh

Make sure you insert the line above the last line ( : exit 0 )

5. make sure CCCam.cfg has these line in it
ALLOW TELNETINFO: yes
TELNETINFO LISTEN PORT:16000
If not add them and restart CCcam.


So in the folder
/etc/cron
you must have/create a file "crontabfile" (no extension).
Further more you must create a folder

/etc/cron/crontabs
in which folder you must have the file "root"

Starting cron with: /usr/sbin/crond -c /etc/cron/crontabs

Just for your information:
I made a script file which checks every 10 minutes if my softcam (CCcam) is running; if yes it is ok,
if not that script will (re)start the softcam.


So in the files
/etc/cron/crontabs/root
and
/etc/cron/crontabs
I have this:

10 * * * * /usr/script/cccam_restart.sh

crond takes care for executing that script file every 10 minutes.

Edited by Novac, 10 January 2013 - 22:32.


Re: vu+duo scripts #9 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 10 January 2013 - 23:39

hmm! :(

You guys reading what i wrote? I need to reboot the vuduo automatically... someone sort of cronjob or script would do this nicely, if anyone's come across any... the mods know this yet they chose not to answer.

i've tried many ways but non of them have worked!

I also need to also put the dreambox into standby automatically, again a cronjob or a script would do this nicely, anyone in a helping mood?

Or is there some plugin that can do these both?

Re: vu+duo scripts #10 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 11 January 2013 - 01:29

Ok... found a couple of solutions...

To reboot vu duo automaticaly you place this as a cronjob:
15 4 * * * /sbin/reboot

For putting the reciever into standby after the reboot i found a plugin called autostandby on the plugin download menu...

I haven't managed to get the plugin working all that well... it goes into standby all the time after rebooting, i want it to go into into standby only when its rebooted from the cronjob... is there something i can do?

Re: vu+duo scripts #11 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 11 January 2013 - 03:00

Took a while... got both working through: you can reboot the vuduo and go to standby automatically using cron with the following cronjobs:


2 6 * * * /sbin/reboot
4 6 * * * wget -q http://127.0.0.1/web...tate?newstate=0

Thank you for even bothering to read any of this.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users