1834625 Members
2591 Online
110069 Solutions
New Discussion

telnet and CDE

 
SOLVED
Go to solution
Lye Keng Yeen
Occasional Contributor

telnet and CDE

Hi,

When I in CDE, I can run my script file with ". ", but when I use telnet or rlogin, the script will stop with an error. Here is part of the script file where it stops.

Args="$@"
ThisCmd="$0 $Args"

The error is "@: parameter not set". Thanks.
3 REPLIES 3
MARTINACHE
Respected Contributor

Re: telnet and CDE

Hi,

$@ means all the arguments.

Example :

./command arg1 arg2

in this case $@="arg1 arg2"

You can try to replace $@ by $*

Or remove this line if your command does not require argument.

Regards,

Patrice.
Patrice MARTINACHE
Vikas Khator
Honored Contributor
Solution

Re: telnet and CDE

Hi ,

Try adding a line before all these lines :

set +u

Keep it simple
Lye Keng Yeen
Occasional Contributor

Re: telnet and CDE

thanks to all who help !!