Re: A file is not always what you think it is.

1999-04-22 Thread Kenneth Scharf
>Oh, and if the package is bigger than the floppy then >it won't fit. >Obviously. But you can split a large file into several floppies and then stitch them back together again by using 'cat', and 'tail' along with 'cp'. === Amateur Radio, when all else fails! http://www.qsl.net/wa2mze Debian G

Re: A file is not always what you think it is.

1999-04-21 Thread Jiri Baum
Antal Ritter: > That's it. #!/bin/sh would be ok, but the kernel (?) will not find > #!/bin/sh, and that's what the "file not found" referred to. This is > one of my favourites. Which, of course, suggests an alternative solution :-) ln -s /bin/sh /bin/sh^M (Which wouldn't work very well unless

Re: A file is not always what you think it is.

1999-04-21 Thread Jiri Baum
Hans van den Boogert: > That makes me wonder: I have to install some packages on the notebook to > get the external CD-ROM drive working. If I copy them from the CD-ROM on > a DOS formatted floppy and then transfer to the notebook, will I get the > same kind of trouble? Nope. Copying deb files b

Re: A file is not always what you think it is.

1999-04-20 Thread Antal Ritter
Hi, On Mon, Apr 19, 1999 at 08:12:43PM +0200, Jesse Jacobsen wrote: > [...] > endings. In fact, the .txt extension should be no barrier to running a > script, as long as the ``shebang'' (#!...) line at the beginning is > correct. [...] That's it. #!/bin/sh would be ok, but the kernel (?) will n

Re: A file is not always what you think it is.

1999-04-19 Thread Rob Mahurin
On Mon, Apr 19, 1999 at 05:58:18PM +0800, Hans van den Boogert wrote: > > Apparently a .txt file written under Win95 can be chmod-ed, but not > executed. I used ae to write a simple script from scratch under Linux > and it worked no problem at all. > > That makes me wonder: I have to install so

Re: A file is not always what you think it is.

1999-04-19 Thread Jesse Jacobsen
That sounds suspicious. Hmmm. Are you sure that the permissions *and* the ownership were set properly for *you* to execute it? After all, a text file is just a text file. The only variation would be CR/LF line endings. In fact, the .txt extension should be no barrier to running a script, as lo

Re: A file is not always what you think it is.

1999-04-19 Thread Dan Brosemer
On Mon, 19 Apr 1999, Carl Mummert wrote: In case these aren't on a particular system, I've found this works well. $ perl -pi -e 's/\r\n/\n/g' (DOS->UNIX) $ perl -pi -e 's/\n/\r\n/g' (UNIX->DOS) AFAIK it's the CR you want to remove (\r in perl) and not the newl

Re: A file is not always what you think it is.

1999-04-19 Thread Carl Mummert
Synopsis: file, created in Windows, won't execuate as shell script on Linux box. Here is an 'od' dump of the first line of the file: > 000 # ! sp / b i n / s h cr nl The trick here is to get rid of the newlines. The easiest way I know of is to use the 'fromdos' prog

Re: A file is not always what you think it is.

1999-04-19 Thread Jan Muszynski
On 19 Apr 99, at 17:58, Hans van den Boogert wrote about A file is not always what you think: [snipped to conserve bandwidth] > What I did: - write a script using Notepad under Winblows on the > P200. Saved it as a .txt file. - copied it on a DOS formatted > disk. Changed the filename to one

Re: A file is not always what you think it is.

1999-04-19 Thread Shao Zhang
On Mon, Apr 19, 1999 at 07:40:02AM -0400, [EMAIL PROTECTED] wrote: > I have found, as you have, that linux sometimes has trouble with files on DOS > partitions. I find that I cannot use gzip/gunzip with files located on my > fat32 partition. I have to copy deb files over to my linux partition bef

Re: A file is not always what you think it is.

1999-04-19 Thread ANShevin
I have found, as you have, that linux sometimes has trouble with files on DOS partitions. I find that I cannot use gzip/gunzip with files located on my fat32 partition. I have to copy deb files over to my linux partition before I can install them. Once copied, though, everything works fine. As