Home » Infrastructure » Unix » prtconf command
prtconf command [message #196691] Fri, 06 October 2006 09:19 Go to next message
Messages: 5
Registered: September 2006
Location: Switzerland
Junior Member
i am running the prtconf command in my script and on execution get this error message on the screen "prtconf: invalid path specified".

The command that i am running is:

/usr/sbin/prtconf -pv | grep Memory

When i run this command from command line i have no problem and it gives me the Memory Size without the error message.

I am looking at doing two things i want to run the command and output it to a file without getting the error shown to the screen. However, if the error does occur i want to output the error to the file as well.

/usr/sbin/prtconf -pv | grep Memory >>some

Re: prtconf command [message #196892 is a reply to message #196691] Mon, 09 October 2006 01:21 Go to previous message
Messages: 23
Registered: July 2006
Junior Member
Hi Athyzafiris,

it works fine.
Plz have a look.

/disk3/prod/tmp1=>cat prnco.sh
prtconf -pv | grep Memory >> prt-op

/disk3/prod/tmp1=>sh prnco.sh

/disk3/prod/tmp1=>cat prt-op
Memory size: 4096 Megabytes

Previous Topic: How to call a C program in a shell...
Next Topic: Creating a second database on AIX box
Goto Forum:

Current Time: Wed Dec 08 08:12:30 CST 2021