T.R | Title | User | Personal Name | Date | Lines |
---|
1196.1 | log 77690 | 42326::COFFEYJ | UKCSC Unix Girlie aka La Feline Flooz! | Wed Feb 28 1996 06:50 | 93 |
| Hi all,
I've taken over this customer call from Alec....
but could still do with help on this one....
Apparently the problem only happens when
it's run from cron, interactively it works ok.
A few more details from the customer....
Can a console -E be run from crontab????
ta
Jo.
This is the crontab entry
=========================
33 * * * * ksh /SE/remote_access/ivtemp1.sh >/SE/remote_access/ivtemp1.log 2>&1
This is the script
==================
# cat ivtemp1.sh
#!/bin/ksh
set
echo "This is the import file"
cat /tmp/pcm_import
echo "before import"
ls -l /var/opt/console/data/console_cfg.dat
console -E import /tmp/pcm_import
echo "after import"
ls -l /var/opt/console/data/console_cfg.dat
exit
This is the output
==================
# cat ivtemp1.log
ERRNO=25
FCEDIT=/usr/bin/ed
HOME=/
IFS='
'
LINENO=2
LOGNAME=root
MAILCHECK=600
OPTARG
OPTIND=0
PATH=:/usr/bin
PPID=10093
PS2='> '
PS3='#? '
PS4='+ '
PWD=/
RANDOM=12051
SECONDS=0
SHELL=/usr/bin/sh
TMOUT=0
_
This is the import file
ADD_USER:
NAME: pcm8015
INFO: SE automatically generated
MAY_STARTUP: N
MAY_RECONFIGURE: N
MAY_UNLOCK: N
MAY_BREAK: N
MAY_SHUTDOWN: N
MAY_ARCHIVE: N
MAY_EXITC3: N
MAY_EDIT_CFG: N
SYSTEM_ACCESS: gast01
END:
before import
- -rw-r--r-- 1 root system 31272 Feb 16 11:12
/var/opt/console/data/console_cfg.dat
POLYCENTER Console Manager
Character Cell Editor Version V1.6-110
Copyright (c) 1995 Digital Equipment Corporation. All Rights Reserved
Database contains NO verification errors
sh: 9957 Memory fault - core dumped
after import
- -rw-r--r-- 1 root system 0 Feb 16 11:33
/var/opt/console/data/console_cfg.dat
|
1196.2 | | 42326::COFFEYJ | Would you do Curious Yellow in an English Voodoo? | Tue Mar 05 1996 05:53 | 20 |
| Please?
Does console -E have to be run with an associated tty?
Since the script works normally but fails at the console -E
with a memory fault: core dumped. message when it's run
from crontab that's all that I can think of as being responsible
so far.
I'm scanning the user guide but haven't found anything
yet that makes it clear if this customer should be able to
do this from crontab.
cheers
Jo.
|
1196.3 | | CSC32::BUTTERWORTH | Gun Control is a steady hand. | Tue Mar 05 1996 14:08 | 14 |
| Jo,
I'll take a stab at it but I'm just not that familiar with the inner
workings of Unix I/O. I kind of wonderif the editor is looking for
terminal input or some such. How about you create a file called
"pcm_import" that contains the lines
import file-spec
exit
And then run the editor in cron and specify stdin as the "pcm_import"
file and stdout as your logfile.
Regs,
Dan
|
1196.4 | | 42326::COFFEYJ | Would you do Curious Yellow in an English Voodoo? | Mon Mar 11 1996 06:07 | 9 |
| Good suggestion, I'll get the customer to try it..
Thanks lots, if nothing else at least I know I'm
not completely alone on this :-)
Jo.
|