Operating System - HP-UX
1838675 Members
4553 Online
110128 Solutions
New Discussion

ERROR MESSAGE: rdist command hp-ux

 
Jason Tuttle
New Member

ERROR MESSAGE: rdist command hp-ux

When issuing the following 2 rdist commands:
*********************************
$rdist_cmd="rdist -n -h -R -M -f=$rdist_param_file";

$rdist_result=`$rdist_cmd`;
*******************************
I get the following 2 messages:
*****************************
rdist_cmd equals: rdist -n -h -R -M -f=/u/ns-home/cgi-bin/WebAECMaint_cgi2.txt
(1st command is Successful)

rdist_result equals: Usage: rdist [-nqbhirvwyDM] [-f distfile] [-d var=value] [-m host] [file ...] or: rdist [-nqbhirvwyDM] -c source [...] machine[:dest]
(2nd command Fails)
*********************************
QUESTION: Does anyone have any thoughts as to why the 2nd command fails and gives this [usage] error message? Or any thoughts for the solution to this error message?

Appreciate the help.

Jason

Jason Tuttle
Alliance Entertainment
jastut@aent.com
"Unix is terrific"
3 REPLIES 3
Abel Berger
Regular Advisor

Re: ERROR MESSAGE: rdist command hp-ux

Hi Jason,

In your HP-UX version, when you execute a #man rdist, do you have a -R flag ???

Regards,

Abel Berger
Abel Berger
Regular Advisor

Re: ERROR MESSAGE: rdist command hp-ux

Hi Jason,

I think that the script don?t found rdist_param_file in $rdist_result=`$rdist_cmd`,
maybe you shuould export this variable after run it .

I hope this help !

Regards,

Abel Berger


Abel Berger
Regular Advisor

Re: ERROR MESSAGE: rdist command hp-ux

OOPS, after no, BEFORE, OK

Abel Berger