From: Yah Navatkah on
do I need special perms to do this? Have a script
that runs on another sys (RHEL 3) ok and sets LOGNAME
var, but now when I run it on a new sys I get an error:

cpr -pxerox3 /etc/hosts
ocl: line 1: LOGNAME=cosmos: not found

any ideas?

b

From: Jim Cochrane on
On 2008-05-16, Yah Navatkah <edison(a)newpaltz.edu> wrote:
> do I need special perms to do this? Have a script
> that runs on another sys (RHEL 3) ok and sets LOGNAME
> var, but now when I run it on a new sys I get an error:
>
> cpr -pxerox3 /etc/hosts
> ocl: line 1: LOGNAME=cosmos: not found
>
> any ideas?

That looks like a runtime error (nothing to do with permissions) -
the shell executing your script appears to think that it was told that
LOGNAME=cosmos is a file name - it was probably trying to execute it
and since it does not exist, gives the error message.

What is ocl? Is the script a bash or sh script?

It would help if you post the contents of the script, or an adequate
excerpt, and give much more information about the context in which
you're running it.


--