September 14, 2007, 11:50:52 pm
News:
  Pages: [1]
Author Topic: crontab?  (Read 43 times)
bagster
Newbie

Posts: 11


« on: September 10, 2007, 11:34:13 am »

Hi.  I have another question.  Is it possible to use something as a scheduler to run tasks "a la crontab"?
I use a samba share to record, but as it's not always available, I want to record on a SD card and copy it later on my share.  This way i'll never lose scheduled recordings.

If I can't do that, i'll make a script that will `sleep` 1 day and copy files, and cycle through that.
Logged
greyback
Moderator
Sr. Member

Posts: 291


« Reply #1 on: September 10, 2007, 12:39:18 pm »

There's no cron on the OSD. There's supposed to be a scheduler in the works, but I think you'd be wise to do your own thing, and use a clever bash script that always runs.
-G
Logged
bagster
Newbie

Posts: 11


« Reply #2 on: September 10, 2007, 12:53:26 pm »

Ok, thank you.  Do a "file depot" exist for stuff like that?  I don't want to rewrite stuff that already exist, and I my scripts can help I can share them.
The 3 firsts I want to make are the one discussed in this topic, a script to "add" schedule recordings from the command line based on a default config (like run ./addrecord name channel length date repeat) and one to rename files based on file timestamp.

Another project I think about is to do a nintendo ds remote control to add schedules.  As I wrote in another thread, I want to use the OSD "headless", so I'm going to try to do console/network stuff.

Also, do you think the telnetd will be there "forever"?
If I made tools that use it (simply connect on port 23 and send commands (a OSX wrapper to add records)), I don't want them to be deprecated soon...

so much questions, sorry.  I'm a new osd owner and I see a lot of potential in my new toy Smiley
Logged
greyback
Moderator
Sr. Member

Posts: 291


« Reply #3 on: September 10, 2007, 01:07:19 pm »

Ok, thank you.  Do a "file depot" exist for stuff like that?  I don't want to rewrite stuff that already exist, and I my scripts can help I can share them.
None that I'm aware of anyway. But stuff like this would be appreciated! Posting maybe to the Wiki might be a good place so everyone can see.

Quote
Another project I think about is to do a nintendo ds remote control to add schedules.  As I wrote in another thread, I want to use the OSD "headless", so I'm going to try to do console/network stuff.
How with a DS? You thinking of using the DS Opera browser to connect to the OSD and set up stuff there? There is a basic webserver on beta versions of firmware, but it's not usable yet. I'm eagerly awaiting Lua bindings for the webserver, so people can program web interfaces for the OSD.

Quote
Also, do you think the telnetd will be there "forever"?
If I made tools that use it (simply connect on port 23 and send commands (a OSX wrapper to add records)), I don't want them to be deprecated soon...
Hmmm, I've no idea of the timescale, but there is a plan to substitute telnet with ssh. But once again, Neuros has bigger fish to fry at the moment, so I'd recommend using telnet for the foreseeable future.

In case you didn't know, there is about 1MB of read/write storage at /mnt/OSD which I find perfect for placing scripts. It's where all your settings go.

Quote
so much questions, sorry.  I'm a new osd owner and I see a lot of potential in my new toy Smiley
Not at all, we're happy to help out!
-G
Logged
  Pages: [1]
Jump to: