PDA

View Full Version : NFS question (AIX)


fildien
01-22-2009, 09:10 AM
Ok I am stumped. I have set up countless NFS mounts and never had any issues. Today I'm trying to set up an NFS mount to a server that needs rwx and it just is not working right.

I have tried multiple configs in my /etc/exports and can't get it working. I can mount up the NFS mount on my remote node with no issues. I can even create files from the remote node (write). But whenever I try to run a script I get:

ksh: ./blah.ksh: not found

What the hell am I doing wrong?

/etc/exports I have tried these things:

/stage/10g -root=mynode
/stage/10g
/stage/10g -sec=sys:none, rw, access=mynode

Nothing allows me to execute files in that mount point remotely.

fildien
01-22-2009, 09:18 AM
nevermind!
the DBA has hidden characters in her scripts!
grrrrrrr

#!/usr/bin/ksh^M
##^M
## Script: vg_type_check.ksh^M
##^M
## Script to check the database VG format^M


those ^M should not be there

Palarran
01-22-2009, 09:33 AM
Looks like it was saved with DOS-style line breaks (0D 0A) instead of Unix-style line breaks (0A)? d2u should fix that.

fildien
01-22-2009, 09:56 AM
yeah Cerner apparently uploaded them after editing them in word or something dumb like that. idiots.

btw, d2u did work and worked quite well. thank you :) that's another tool my toolbox.