Re: [Freedos-user] is possible handling upper and lower case with dosemu

2009-10-24 Thread Juan Matias Granda
Thanks Eric i going to use the trick:
You can of course tell the same Linux PC which runs the Samba server
to mount the Samba directories as a client.
one more cuestion, can i lost performance with this trick?

Grettings
insulae

2009/10/23 Eric Auer e.a...@jpberlin.de:

 Hi!

 hi, we are migrating a dos application to samba servers and dosemu/FreeDOS
 clients, the program need all files in upper case, with samba i can

 Which program? If it is a DOS / Windows program, it should
 be case-insensitive. This means it does not matter that
 Linux uses the proper recommended lower case on Samba,
 because Win/DOS programs ignore the upper / lower case.

 use: default case = upper. but some clients run the application in
 the server via SSH/dosemu, with this clients i have a problem: dosemu
 write directly to my EXT4 in lower case, in dosemu the file is
 writed in upper case but when i see the file via bash the file is in
 lower case, how i can change this?

 You could tell Dosemu to use a directory on a Samba server
 instead of a directory on Ext4 for your DOS files. You can
 of course tell the same Linux PC which runs the Samba server
 to mount the Samba directories as a client. Might be a nice
 trick for you if you really want all DOS activities to be
 on DOS style directories, if you want to hide the ext4 :-)

 for example with dosemu we have another problem, the file is
 writed with -rw-r--r-- mask, but if we run:
 $ umask 000
 $ dosemu
 the problem is resolt the file is writed with xrwxrwxrw

 Yes of course... Which mask do you want? rw-r-r is very good.
 If you want other users to write, use rw-rw-r and make sure
 that the other users are in the same group. Only in very
 special situations it can be okay to use rw-rw-rw to give
 ALL users write access. You should never use rwx-rwx-rwx...

 so the solution it can be from dosemu configuration or using
 a external program, only i need upper case files!!! :D.

 See above - I think you do NOT need upper case but you CAN
 force upper case by mounting your own Samba share in Linux
 and telling Dosemu to use the mounted directory instead of
 the original ext4 drive ;-). That means that Samba option
 default case = upper will have effect on Dosemu as well.

 Eric



 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Freedos-user mailing list
 Freedos-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freedos-user




-- 
Juan Matias Granda
http://www.insulae.com.ar
GPG FINGERPRINT:459C 4A2D 330C CB8C 0C44 0C3A 572C CBCA 5457 508B

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] is possible handling upper and lower case with dosemu

2009-10-23 Thread Eric Auer

Hi!

 hi, we are migrating a dos application to samba servers and dosemu/FreeDOS
 clients, the program need all files in upper case, with samba i can

Which program? If it is a DOS / Windows program, it should
be case-insensitive. This means it does not matter that
Linux uses the proper recommended lower case on Samba,
because Win/DOS programs ignore the upper / lower case.

 use: default case = upper. but some clients run the application in
 the server via SSH/dosemu, with this clients i have a problem: dosemu
 write directly to my EXT4 in lower case, in dosemu the file is
 writed in upper case but when i see the file via bash the file is in
 lower case, how i can change this?

You could tell Dosemu to use a directory on a Samba server
instead of a directory on Ext4 for your DOS files. You can
of course tell the same Linux PC which runs the Samba server
to mount the Samba directories as a client. Might be a nice
trick for you if you really want all DOS activities to be
on DOS style directories, if you want to hide the ext4 :-)

 for example with dosemu we have another problem, the file is
 writed with -rw-r--r-- mask, but if we run:
 $ umask 000
 $ dosemu
 the problem is resolt the file is writed with xrwxrwxrw

Yes of course... Which mask do you want? rw-r-r is very good.
If you want other users to write, use rw-rw-r and make sure
that the other users are in the same group. Only in very
special situations it can be okay to use rw-rw-rw to give
ALL users write access. You should never use rwx-rwx-rwx...

 so the solution it can be from dosemu configuration or using
 a external program, only i need upper case files!!! :D.

See above - I think you do NOT need upper case but you CAN
force upper case by mounting your own Samba share in Linux
and telling Dosemu to use the mounted directory instead of
the original ext4 drive ;-). That means that Samba option
default case = upper will have effect on Dosemu as well.

Eric



--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user