This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bash and "&"


A little contribution,
 

Before any questions, i want to express my admiration for the work that i've been done on

Gnu-win32.

I've two questions, one on the bash and &, the second, on the use of pid, gid etc.

bash and &

from the same bash,

launch of cygwish80 by :

-> cygwish80.exe &

-> ps -ef

TTY PID PPID PGID WIN32-PID UID STIME COMMAND

00 1000 1000 1000 146 1008 10:38:25 d:\Cygnus\B19\H-i386-cygwin32\bin\bash.exe

00 1003 1000 1003 80 1008 10:39:22 d:\Cygnus\B19\H-i386-cygwin32\bin\cygwish80.exe

00 1005 1000 1005 179 1008 10:39:55 d:\emacs-19.34\bin\emacs.exe

00 1006 1000 1006 164 1008 10:40:21 d:\Cygnus\B19\H-i386-cygwin32\bin\ps.exe

 

launch of cygwish80 by :

-> nohup cygwish80.exe &

-> ps -ef

TTY PID PPID PGID WIN32-PID UID STIME COMMAND

00 1000 1000 1000 146 1008 10:38:25 d:\Cygnus\B19\H-i386-cygwin32\bin\bash.exe

00 1003 1000 1003 80 1008 10:39:22 d:\Cygnus\B19\H-i386-cygwin32\bin\cygwish80.exe

00 1005 1000 1005 179 1008 10:39:55 d:\emacs-19.34\bin\emacs.exe

00 1007 1000 1007 92 1008 10:41:09 d:\Cygnus\B19\H-i386-cygwin32\bin\cygwish80.exe

00 1017 1000 1017 210 1008 10:43:19 d:\Cygnus\B19\H-i386-cygwin32\bin\ps.exe

 

In the two case, the only way to exit is to terminate the cygwish app and then to exit from the shell.

As we can see, the tty on wich the app runs is the bash tty, for the two type of launch. that's not what the nohup exec should do.

Pid, gid etc.

as described, i create the two system files on my /etc directory, that is, passwd and group.

PASSWD

Administrateur::500:513:::/bin/sh

annie::1009:513:maman::/bin/sh

bruno::1008:513:c'est le papa::/bin/bash

comptes::1005:513:gestion de money::/bin/sh

Invité::501:514:::/bin/sh

sylvie::1007:513:c'est la maman::/bin/sh

GROUP

Admins du domaine::512:

Invités du domaine::514:

Utilisa. du domaine::513:

Everyone::0:

it seems to me that, inspite of these description, there are problems. For example, if i lauch a bash,

and then create a file (for example toto) by :

-> echo toto > toto

a ls -l command gives :

-rw-rw-rw- 1 544 Utilisa. 6 Apr 4 10:59 toto

where does the 544 comes from and also is "Utilisat. du domaine" expression a valid one for gnu-win32.

also i remarked that even if i wasn't the owner of a file and it was a readonly one i was able to change its

rights an d then ownes it.

Is there a problem or am i doing wrong actions ?

Greetings.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]