[ale] dos file in linux?? WTF?
Geoffrey
esoteric at denali.atlnet.com
Wed Dec 12 19:06:42 EST 2001
tewkewl at mindspring.com wrote:
>
> Hey guys...
>
> How does linux/vi know that a file is considered to be a 'dos' file?
> it really never was a dos file...it was a script written on an hp box...but during the move (tar/zip) when we run it on linux, it reports "bash: ./secng.sh: No such file or directory"
I've seen this happen with perl scripts I've pulled down from an NT
box. What's probably the case the script starts with something like:
!#/bin/sh
and the extra dos characters change the name of /bin/sh to
/bin/sh<garbage>, hence the error you're getting.
I don't know how the dos characters got their but strip them with your
favorite tool and your script should work. I use the following....
for fn in $*; do
tr -d '\015' < ${fn}.dos > ${fn}
done
>
> when the file is plainly there and with execute permissions.
>
> when I VI the file, vi reports [DOS] at the bottom where it has the file name. Anybody have a clue?
>
> -Patrick
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
--
Until later: Geoffrey esoteric at denali.atlnet.com
"...the system (Microsoft passport) carries significant risks to users
that
are not made adequately clear in the technical documentation available."
- David P. Kormann and Aviel D. Rubin, AT&T Labs - Research
- http://www.avirubin.com/passport.html
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list