Re:Re: screen with su and dosemu

"<[email protected]>" <[email protected]> Thu, 18 Mar 2004 22:15:45 +0100 (CET)
Newsgroups gmane.comp.gnu.screen
Message-ID <20509749.1079644545423.JavaMail.www@wwinf4003>
Excuse me, I badly described my problem.

Today for our industrial needs, we use a MS-DOS application which connects a technical material to a PC.
Unfortunately this owner application cannot be rewriten for another environment other than MSDOS.
This application must always run and the people who must reach this one, must to do it remotely.

At the beginning, we made run it on an Windows NT environnement with VNC for remotely takes.
But after one year of operation we realized that it run very badly with phenomena of slowness and blocking.
I think that Windows NT manages very badly MS DOS mode for this application...

That made a long time that i am interest and use Open Source softwares and I discovered on Internet a emulator MSDOS for Linux (DOSEMU).
I thus have a day made the test of launching this application under DOSEMU and to happiness that it goes super good and better than under Windows.
But I had a problem because this application never be stopped even after disconnect of the current session and with the possibility of reconnect for a remotly session.

It was screen which was the solution of my problem.

Today for the initial launching of the application I connect myself on account user with ssh,
I launch screen, after dosemu and in the last my application. To disconnect and leave this application in function, I do one [CTRL]D.

After for to join this application, i connect to PC over ssh and I use a screen - x for to join the session application.
All that goes very very well for some time.

But today, I wish to automate the initial launching of the application in the event of reboot of the PC.

Thus, i try to do the below command PC on startup.

su - [specific application user] -c "screen dosemu"

But i have the following error.
"Cannot open your terminal '/dev/pts/0' - please check."

I hope have been clearly in my explanations and which you can help me to find a solution.

Victor

>>* <victor3.lopes@v...> [2004-03-18 12:00]:
>> i want to launch a DOS application within
>> dosemu on startup of the machine.
>>
>> I want use the following command:
>> su - user - c screen dosemu
>>
>> But i have the following error:
>> "Cannot open your terminal
>> '/dev/pts/0' - please check."
>>
>> Today, the actual situation is to wait, boot, and
>> logon for the user and launch the screen command
>> with dosemu after. Is not the boot target for
>> me, i want to automatic solution on startup.
>>
>> can you help me?
>
>i wonder what problem you are trying to solve with this.
>
>you did not specify your problem and yet you say that
>you "want to use the command" so you are giving
>a possible solution to yet unknown problem.
>
>do you simply want to display a DOS program on startup?
>then you might as well boot windows and place
>the DOS program into the startup folder.
>
>anyway, you can only start a screen session
>on a terminal which belongs to the user, too.
>
>example:
>
>guckes@home:~> id
>uid=1000(guckes) gid=1000(guckes) groups=1000(guckes)
>
>so i am "me" on my home system.
>
>i'll use "sudo" to become "root".
>
>guckes@home:~> sudo bash
>Password:
>2.05b root@home ~> id
>uid=0(root) gid=0(root) groups=0(root)
>
>but the terminal still belongs to user "guckes":
>
>2.05b root@home ~> ls -l `tty`
>crw------- 1 guckes tty 136, 5 Mar 18 13:18 /dev/pts/5
>
>so that's why starting screen as root won't work.
>
>but i think there was a way... gotta read
>up on the mailing list archive for that..
>
>then again, i haven't used dosemu in quite a while.
>i think you have to make sure that DOS is installed
>on your disk - and maybe answer some prompts, too.
>
>anyway, i think you should a decription of your *real* problem
>which you are trying to solve with the help of screen and dosemu..
>
>Sven

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/gnu-screen/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/