Sometime on Jan 21, Ankit Jain assembled some asciibets to say: > i d/led a script called xyz.txt on my windoze laptop n transferred > it 2 my rhl 7.1 (kernel 2.4.12) box via a floppy. Renamed it and set > the proper permissions(execute perm). > Now doing a > ./xyz.sh > gives > bash:xyz.sh command not found
Did you convert the script to unix format? messdos has this stupid notion that an end of line must be signalled with two characters - \r\n. Why the \r, nobody knows - hey since when have electronic consoles had carriages to return? Two/Three options. 1. use dos2unix 2. open file in pico, do Ctrl+O, do Ctrl+X 3. cat file.txt | sed -e 's/\r//g' > file2.txt pick one, use it. -- Kiss a non-smoker; taste the difference. _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
