petguego
24th May 2006, 17:46
Friends: We needed to know to that they must the following errors, these tasks are executing themselves directly of cron with the following parameters.

When running scrip manually, this is executed without


Cron:

59 19 * * * /bin/su - tarea -c /home/users/tarea/SCRIPT.sh 2>&1


El log se encuentra en $BSE/log/log.ba6.1

ERROR 6
2006-03-12[11:35:59]:E:root: ******* S T A R T of Error message *******
2006-05-23[02:18:55]:E:tarea: user_type S language 5 user_name tarea tty 7 locale ISO88591/NULL
2006-05-23[02:18:55]:E:tarea: Errno 6 (No such device or address) bdb_errno 0

2006-05-23[02:18:55]:E:tarea: Log_mesg: ERROR: get_tty_char error: fd 0, tmo 0, buf abed4, bytes 256, n 0

2006-05-23[02:18:55]:E:tarea:

2006-05-23[02:18:55]:E:tarea: ******* E N D of Error message *******

ERROR 2
2006-05-23[19:59:02]:E:tarea801: ******* S T A R T of Error message *******
2006-05-23[19:59:02]:E:tarea801: Log message called from /port.6.1c.06.02/vobs/tt/ba/ba/baerror.c: #113 keyword: ba error
2006-05-23[19:59:02]:E:tarea801: Pid 26021 Uid 1397 Euid 1397 Gid 125 Egid 125
2006-05-23[19:59:02]:E:tarea801: user_type S language 5 user_name tarea801 tty locale ISO88591/NULL
2006-05-23[19:59:02]:E:tarea801: Errno 2 (No such file or directory) bdb_errno 0
2006-05-23[19:59:02]:E:tarea801: Log_mesg: Error [ba_init_curses ]: init_curses no realizada
2006-05-23[19:59:02]:E:tarea801: TERM=sun; TTY=stdin&stdout: No such file or directory; número error = 2
2006-05-23[19:59:02]:E:tarea801: ******* E N D of Error message *******

Regards
Peter Guerrero G. :confused:

Han Brinkman
29th May 2006, 13:11
Is TERM=sun correct? Furthermore I think the TTY setting (stndin&stndout) are a bit weird?

Try set TERM=vt100 in you batch file, does it work then? What are the settings for TERM and TTY if you run the job manually?

Regards,
Han

bdittmar
29th May 2006, 17:56
Friends: We needed to know to that they must the following errors, these tasks are executing themselves directly of cron with the following parameters.

When running scrip manually, this is executed without


Cron:

59 19 * * * /bin/su - tarea -c /home/users/tarea/SCRIPT.sh 2>&1


El log se encuentra en $BSE/log/log.ba6.1

ERROR 6
2006-03-12[11:35:59]:E:root: ******* S T A R T of Error message *******
2006-05-23[02:18:55]:E:tarea: user_type S language 5 user_name tarea tty 7 locale ISO88591/NULL
2006-05-23[02:18:55]:E:tarea: Errno 6 (No such device or address) bdb_errno 0

2006-05-23[02:18:55]:E:tarea: Log_mesg: ERROR: get_tty_char error: fd 0, tmo 0, buf abed4, bytes 256, n 0

2006-05-23[02:18:55]:E:tarea:

2006-05-23[02:18:55]:E:tarea: ******* E N D of Error message *******

ERROR 2
2006-05-23[19:59:02]:E:tarea801: ******* S T A R T of Error message *******
2006-05-23[19:59:02]:E:tarea801: Log message called from /port.6.1c.06.02/vobs/tt/ba/ba/baerror.c: #113 keyword: ba error
2006-05-23[19:59:02]:E:tarea801: Pid 26021 Uid 1397 Euid 1397 Gid 125 Egid 125
2006-05-23[19:59:02]:E:tarea801: user_type S language 5 user_name tarea801 tty locale ISO88591/NULL
2006-05-23[19:59:02]:E:tarea801: Errno 2 (No such file or directory) bdb_errno 0
2006-05-23[19:59:02]:E:tarea801: Log_mesg: Error [ba_init_curses ]: init_curses no realizada
2006-05-23[19:59:02]:E:tarea801: TERM=sun; TTY=stdin&stdout: No such file or directory; número error = 2
2006-05-23[19:59:02]:E:tarea801: ******* E N D of Error message *******

Regards
Peter Guerrero G. :confused:

Hello,
try to export the user in crontab like :
00 18 * * 6 export USER=jobs4c;sh /daten/bse/etc/rc.startjob FELD
or
15 22 * * 1-6 sh -c "./home/ba_scripts/licmon_use"
or
40 04 * * 1-6 find /daten/tmp -name "tmp*" -mtime +14 -exec rm -f {} \;

Don't know what your shellscript should do ?

Regards