[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: React to File changes
>Hi,
>
>You don't say what the overlying OS is that the DOS program is
>running under, but if it's NOT W2K,
It is actually Win98 at this point.
>mknod some_file p
This sounds good and it seems to work . . . except:
$cat temp > some_file
gives me the expected result
however, if I try . . .
$ cat temp | some_file
sh: some_file: cannot execute - Permission denied
$ls -l some_file
prwxr-xr-x 1 allenwc 1000 0 Feb 13 10:54 some_file
$
>I had this running as a communication method between DOS & Unix until
>W2K was installed @ A clients. This completely broke it, as the
>file would be deleted first, then overwritten ( no change to the actual
>application, W2K was being very kind and doing more than it was asked! ).
Did you find a way to get W2K to NOT delete the file first?
Currently the system does not delete the file it just removes the
contents first.
What would I do if I wanted to pretend that my program was a block
character device like a terminal or a printer?
mknod /dev/lpt3 b 16 3
???
In that case I'd be getting input from the stdin right?
Have to think about how to wait for input in this case though.
--
Later . . . 'liam
allenwc@home.com
William C Allen, BLS, EET
"It may be that your sole purpose in life is to serve as a warning to others"
Unknown