wow… great responses…
jdmcdaniel3: I copied/pasted your ‘nsf’ script. It wouldn’t work when preceded with sudo, but did work excellently in su mode. Nice script.
hcvv: shebang. This was not intuitive. Every bash script starts out with a shebang… lol.
But** your main problem** imho will be that you seem to use an non Linux partition for having the script in.
Am I right that /windows/D/ is a mounted Windows file system?
… yes, you are right. I like to keep code in a seperate non-linux-dependant NTFS partition. This way, it can be shared between different linux distros (if any).
The commands:
su
A105-S4134:/windows/D/Devel/bash # bash nsf test7
resulted in a lot of error msgs, but the script did work. ‘nsf’ was in executable mode once copied over.
error msgs displayed from running nsf script:
_IceTransSocketUNIXConnect: Cannot connect to non-local host A105-S4134
_IceTransSocketUNIXConnect: Cannot connect to non-local host A105-S4134
(gedit:8673): EggSMClient-WARNING **: Failed to connect to the session manager: Could not open network socket
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See GConf configuration system for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See GConf configuration system for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See GConf configuration system for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See GConf configuration system for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See GConf configuration system for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
.
.
.
…
nsf script Ext4/NTFS status:
A105-S4134:/home/dan/bin # ls -l
total 12
-rwxr-xr-x 1 root root 1410 2010-09-26 15:18 nsf
-rwxr-xr-x 1 root root 19 2010-09-26 13:54 test1
-rwxr-xr-x 1 dan users 256 2010-09-26 15:10 test2
A105-S4134:/home/dan/bin # cp nsf /windows/D/Devel/bash/nsf
A105-S4134:/home/dan/bin # cd /windows/D/Devel/bash
A105-S4134:/windows/D/Devel/bash # ls -l nsf
-rwxrwxrwx 1 root users 1410 2010-09-26 15:51 nsf
ken_yap: You are correct. Looks like kedit will not be used for bash. ‘nsf’ worked, as described above. But ‘test1’ still failed, until I used vi to recreate it.
please_try_again: The shebang looked like a dir to me. Looking at the bash tutorials online, none of the ones I looked at explained this primary and important initial line. Thanks.
:shake: