[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

1196.0. "PCM...I can spell it ok...Help" by 42326::MCCULLAGHA () Mon Feb 12 1996 11:01

Hello all
	I have a problem in that I have a customer PCM query to answer but no PCM knowledge 
whatsoever.

The customer details his problem as folllows:

I am experiencing a problem with the pcm console_cfg.dat being wiped out.

e.g,
-rw-r--r--   1 root     system         0 Feb 11 19:15 console_cfg.dat

I am not quite sure at what point it is happening but the following takes place
and then it goes to 0 bytes.

1. A user is imported using the "console -E import filename.dat" command.
2. pcm is recycled using "console -r"

I am not sure how to find out the version of PCM but a console -v gives the

following output:-
    	Verify facility Version V1.6-110
	OSF version is V3.2

SO......Are there any known problems of this type on any particular version of PCM?
	How is the version of PCM running on the system checked?	
	Is it expected behaviour?
	What is the pcm console_cfg.dat used for?

Any help at all greatfully received

Thanks very much

Alec	U.K. UNIX Support Group.
T.RTitleUserPersonal
Name
DateLines
1196.1log 7769042326::COFFEYJUKCSC Unix Girlie aka La Feline Flooz!Wed Feb 28 1996 06:5093
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.242326::COFFEYJWould you do Curious Yellow in an English Voodoo?Tue Mar 05 1996 05:5320
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.3CSC32::BUTTERWORTHGun Control is a steady hand.Tue Mar 05 1996 14:0814
    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.442326::COFFEYJWould you do Curious Yellow in an English Voodoo?Mon Mar 11 1996 06:079
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.