* Multiple start-up files
@ 2003-02-07 4:01 John Sowden
2003-02-07 4:09 ` Bart Oldeman
2003-02-07 6:14 ` Sergey Suleymanov
0 siblings, 2 replies; 5+ messages in thread
From: John Sowden @ 2003-02-07 4:01 UTC (permalink / raw)
To: linux-msdos
I am attempting to start dos with icon#1 and run autoexec (diff name) #1; OR
icon#2 with autoexec (2nd diff name)#2.
Intent: 1 icon puts me in my menu structure, the other gives me an empty
screen with a c: prompt.
I tried the xdosemu -input '\r' -quiet -E startup1
didn't work in the icon.
ran it from the c: prompt in a console window. It executed (I think), then
back to the john@sentry prompt. Boot.log did not mention any command line
errors. The 2 startup files are in the same dir as the autoexec that I
execute.
I could not find the -input and -quiet cmd line opts in the docs.
I also could not find a reference to autoexec in the config files. all I
really want to do is set an enviornment variable. The 2 line (3 with set)
autoexec calls a startlin.bat on my dos d: drive. Here I test the env var
and fork accordingly.
--
John Sowden
American Sentry Systems. Inc.
1221 Andersen Drive
San Rafael, CA 94901
U.L. Listed Central Station Alarm Service
Serving the San Francisco Bay Area Since 1967
jsowden@americansentry.net
http://www.americansentry.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple start-up files
2003-02-07 4:01 Multiple start-up files John Sowden
@ 2003-02-07 4:09 ` Bart Oldeman
2003-02-07 6:14 ` Sergey Suleymanov
1 sibling, 0 replies; 5+ messages in thread
From: Bart Oldeman @ 2003-02-07 4:09 UTC (permalink / raw)
To: John Sowden; +Cc: linux-msdos
On Thu, 6 Feb 2003, John Sowden wrote:
> I could not find the -input and -quiet cmd line opts in the docs.
it's in the dosemu manpage.
> I also could not find a reference to autoexec in the config files. all I
> really want to do is set an enviornment variable. The 2 line (3 with set)
> autoexec calls a startlin.bat on my dos d: drive. Here I test the env var
> and fork accordingly.
-E only works if you use the autoexec.bat that comes with dosemu-freedos
(or adjust your own one to work in the same way).
Bart
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple start-up files
2003-02-07 4:01 Multiple start-up files John Sowden
2003-02-07 4:09 ` Bart Oldeman
@ 2003-02-07 6:14 ` Sergey Suleymanov
2003-02-07 7:19 ` Bart Oldeman
1 sibling, 1 reply; 5+ messages in thread
From: Sergey Suleymanov @ 2003-02-07 6:14 UTC (permalink / raw)
To: Linux-MSDOS Mailing list
>>>>> John Sowden writes:
John> I am attempting to start dos with icon#1 and run autoexec (diff
John> name) #1; OR icon#2 with autoexec (2nd diff name)#2.
I'm using cmdline.com for this purpose.
lredir z: linux\fs\proc\self
cmdline < z:\cmdline
lredir del z:
IF "%EXEC%" == "" goto done
%EXEC%
exitemu
:done
And run dosemu as 'xdos exec=myprog.bat' for example.
--
Sergey Suleymanov
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Multiple start-up files
2003-02-07 6:14 ` Sergey Suleymanov
@ 2003-02-07 7:19 ` Bart Oldeman
2003-02-07 8:15 ` Reinhard Karcher
0 siblings, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2003-02-07 7:19 UTC (permalink / raw)
To: Sergey Suleymanov; +Cc: Linux-MSDOS Mailing list
On 7 Feb 2003, Sergey Suleymanov wrote:
> >>>>> John Sowden writes:
>
> John> I am attempting to start dos with icon#1 and run autoexec (diff
> John> name) #1; OR icon#2 with autoexec (2nd diff name)#2.
>
> I'm using cmdline.com for this purpose.
>
> lredir z: linux\fs\proc\self
> cmdline < z:\cmdline
> lredir del z:
>
> IF "%EXEC%" == "" goto done
> %EXEC%
> exitemu
> :done
>
> And run dosemu as 'xdos exec=myprog.bat' for example.
just to clarify: the dosemu-freedos autoexec.bat uses
unix -e
which by default executes what is given behind "-E" in the command line.
Also, FWIW if you use
unix -e EXEC
in autoexec.bat then you could use
EXEC=myprog.bat xdos
or dos, or dosemu, or xdosemu, depending on your installation.
Bart
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple start-up files
2003-02-07 7:19 ` Bart Oldeman
@ 2003-02-07 8:15 ` Reinhard Karcher
0 siblings, 0 replies; 5+ messages in thread
From: Reinhard Karcher @ 2003-02-07 8:15 UTC (permalink / raw)
To: linux-msdos
On Fri, Feb 07, 2003 at 02:19:31AM -0500, Bart Oldeman wrote
> just to clarify: the dosemu-freedos autoexec.bat uses
> unix -e
> which by default executes what is given behind "-E" in the command line.
>
> Also, FWIW if you use
> unix -e EXEC
> in autoexec.bat then you could use
> EXEC=myprog.bat xdos
> or dos, or dosemu, or xdosemu, depending on your installation.
>
The dosemu -I parameter with keystroke can be used. I start my apl-session
with the following shellscript:
#!/bin/sh
nice -n +10 xdos -f /home/kar/.dosemuaplrc -I 'keystroke "e:\rcd apl2\rrun\r\Mi)load quincy97"'
run is run.bat to start the apl interpreter, )load quincy97 is an input to
the interpreter.
I connected the shellscript with an icon.
This type of startup doesn't depend of the typ of your DOS.
Reinhard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-02-07 8:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-07 4:01 Multiple start-up files John Sowden
2003-02-07 4:09 ` Bart Oldeman
2003-02-07 6:14 ` Sergey Suleymanov
2003-02-07 7:19 ` Bart Oldeman
2003-02-07 8:15 ` Reinhard Karcher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox