I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
kcron documentation, kcrontab and KCRON_APPS <- ??

New Messagekcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) johnhamm
Profile
has anybody gotten kcrontab to work yet? is there any documentation for kcron on the internet anywhere (this isn't the KDE version)? i tried putting script in there to turn my screen off at night and back on in the morning:

/kojak/gpio -a 0x40010004 -b6 -m3 -s 0; 59; 23; *; * ; *
/kojak/gpio -a 0x40010004 -b6 -m3 -s 3; 0; 8; *; *; *

but the screen doesn't go off. i think it may have something to do with /config/KCRON_APPS, which holds a list of executables used with kcrontab. i'm not sure what the syntax is.

also, which "time" does it use? when i type "date" at my shell prompt, it tells me the time is in CST, but the datebook uses EST... any ideas?

11-28-2001 14:59:02

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) inkspoof
Profile
edit /kojak/go to correct the timezone setting.

I haven't been able to get kcron to work. jayklm posted cron from a qnx distribution which i've been playing with.. I haven't been able to get cron to work either.

11-28-2001 20:11:57

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) inkspoof
Profile
Found this site that has info on KCRON... not sure if this is the same as the one on Audrey:

http://gary.meyer.net/

11-29-2001 07:26:36

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) johnhamm
Profile
ink,
that's just a graphical UI to cron... audrey's kcron is different, it even uses different syntax in its KCRONTAB data file than the CRONTAB file... has anyone tried the "use" utility on the kcron executable? perhaps there is a "verbose" mode like cron...

speaking of cron, has anyone even got cron to work on their audrey? i got an error when i tried to run either cron or crontab...

11-29-2001 12:34:56

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 2 times) inkspoof
Profile
After reading up on that site a little more... I realised that KCRON site wasn't what we were looking for.

In any case, I got cron (from jayklm) to work.

I tested it out by having it turn the screen off and on a number of times. The backup works also. I modified the Jayklm's script not to backup the ipl also.

11-29-2001 13:26:41

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) johnhamm
Profile
ink,

how did you get cron working? i get the following error when i run cron in verbose mode:

# cron: ** started Nov 29 23:28:46
cron: skipping crontab without user: root

the following is the contents of /usr/spool/cron/crontabs/root:
23 * * * * /nto/bin/screenoff
* * * * * echo > /test.txt
28 * * * * gpio -a 0x40010004 -b6 -m3 -s 0
29 * * * * gpio -a 0x40010004 -b6 -m3 -s 3
30 * * * * gpio -a 0x40010004 -b6 -m3 -s 0

any ideas? what is worrying me is the "skipping crontab without user: root" ... it is almost as if it is not finding the "root" crontab for the current user (root), so it skips it, maybe?

11-29-2001 21:31:18

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) inkspoof
Profile
Here's are the steps I followed:

+Downloaded the backup script from Jayklm
+Extracted (with winzip) so I only had the tarball (backup.tar) and put the file in /mount/misc (I dunno how to gunzip in Audrey shell - hehe)
+Went to root folder
+Executed: tar xvf /mount/misc/backup.tar
+Modified boot.sh to include: cron& (did not reboot yet)
+Started cron in verbose: cron -v &
+Modified crontab (to include the gpio calls to turn off and turn on the screen): crontab -e
+Waited... and it worked, rebooted

Hope this helps... I have 3 Audrey's... but did this on one of them. If you wanna post your steps, I can try to duplicate on one of my other one's and see what happens.

11-30-2001 06:59:41

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) davinci27
Profile
Just so you know. If you add a z to your tar command tar xzvf it will unzip and untar.

davinci27

11-30-2001 11:07:13

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) johnhamm
Profile
Alright here are my steps...

+Downloaded the backup script from Jayklm (I might have an older one perhaps...)
+Extracted (with winzip) so I only had the tarball (backup.tar) on my PC
+FTP'd the backup.tar on to my audrey
+the backup.tar is in the root, i did a tar -xvf backup.tar
+Modified boot.sh to include: cron& (did not reboot yet)
+Started cron in verbose: cron -v &

At this point, I get the message:
# cron: ** started Dec 02 03:26:20
cron: skipping crontab without user: root

When I run crontab with any parameters, I get:
# crontab -e
/nto/bin/ksh: crontab: Can't access shared library

Perhaps it's a problem with the image I'm running, I'm using the updatewithshell image. Maybe I should switch to jayklm's image? I'm using updatewithshell because I don't have a USB NIC yet, I'm using dialup to get files onto the Audrey...

12-02-2001 02:31:24

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) jhd3rd
Profile
Based on the error you are getting, "cron: skipping crontab without user: root", it sounds like maybe cron is trying to find you in the /etc/passwd file. Do you have this file? If not, try creating /etc/passwd, and put an entry in it like:

root::0:0:Superuser:/root:/bin/sh

I'm not sure this is the problem but the error sounds suspicious. inkspoof, do you have an /etc/passwd file? The other error, "crontab: Can't access shared library" indicates you are either missing a shared library, or you don't have the path to the library file in LD_LIBRARY_PATH. Previous posts have indicated that debug messages on the serial port sometimes provide more information on missing libs. inkspoof, do a "echo $LD_LIBRARY_PATH" and let us know what you get.

12-02-2001 06:58:45

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) johnhamm
Profile
jhd3rd,

I think you're right... it appears as if the Audrey cannot find any "users" so cron isn't working for anyone... I created an /etc/passwd file as you described, slayed cron, and reran, still getting the same error message. I transfered the passwd utility to my Audrey thinking maybe there's another file that cron checks to see if a user exists, and i typed "passwd root" at the shell prompt. it walked me through a setup as if it were creating a user named "root" with userid "100" ...

is there a utility for QNX where you can list any existing users, or find out who the "current" user is? if the "current" user is some internal name, perhaps making a crontab with that name would work?

i don't remember where is saw this, but there was a post somewhere that showed how to set a "DEBUG" environment variable to a certain value, then when you run utilities like "cron" it'll tell you extra information such as libaries loaded, etc ...

too bad there isn't a way to tell which files cron is trying to access, sort of like "FileMon" for NT...

12-03-2001 06:42:35

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) johnhamm
Profile
It worked! I used your idea, except I put an "x" in the /etc/passwd file as shown:
root:x:0:0:Superuser:/nto/photon:/bin/sh

cron is working as expected! Thanks to everyone for their help.

Just to answer my own question... the "id" utility will tell you who is logged in, their userid/groupid...

12-03-2001 07:28:26

New Messagecronfused! (modified 0 times) johnhamm
Profile
ok, i have cron working now... sort of.

sometimes it works and sometimes it doesn't. i can't find a pattern to it. here's the contents of my crontab file:

1 5 * * 1-5 /kojak/gpio -a 0x40010004 -b6 -m3 -s 3
1 11 * * 1-5 /kojak/gpio -a 0x40010004 -b6 -m3 -s 0
1 17 * * 1-5 /kojak/gpio -a 0x40010004 -b6 -m3 -s 3
1 23 * * 0-4 /kojak/gpio -a 0x40010004 -b6 -m3 -s 0
1 7 * * 0,6 /kojak/gpio -a 0x40010004 -b6 -m3 -s 3
1 2 * * 0,6 /kojak/gpio -a 0x40010004 -b6 -m3 -s 0

the crontab turns the screen on and off, but it seems to only do it sporatically. if i start cron in verbose mode, then i can see that the problem is with cron, since there's never any "output" that cron is about to try to turn the screen off... *deep sigh* ...

12-04-2001 23:10:46

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) bungee
Profile
I got cron working on Audrey by using the cron from the qnx 6.0 rtp image
the key thing I needed to add was a root entry in /etc/passwd and a usr/spool/cron/cron.allow

to make things easy on you guys I put it all in a tar you can just untar in your root on audrey

cd /
tar xvf cron.tar

the tar is located at
http://www.bloodyeck.com/projects/audrey/bin/qnx/cron.tar

edit the crontab that's in usr/spool/cron/crontabs/root

you might want to copy the programs out of usr/bin and usr/sbin into a dir in your path (nto/bin?)

test it with a cron -v
then add cron & to your boot.sh

Alex


http://www.bloodyeck.com/projects/audrey/
05-03-2002 12:13:40

New MessageRE:kcron documentation, kcrontab and KCRON_APPS <- ?? (modified 0 times) santur
Profile
I followed the instructions provided in this thread on adding cron to Audrey. However, it's not working when I add it to /kojak/boot.sh. It works fine if I run it manually from the terminal window. Any idea why it does not work?

Thanks,

08-25-2002 07:42:06

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3