Page 1 of 1 1
Topic Options
#52367 - 2000-11-27 12:12 AM backgroung process
Anonymous
Unregistered


I know it is not the right forum to ask such a question but you guys are the right people.
Do you know any way to run a program from the background ? I mean when I am at NT console, to give the command and immediately take back the prompt while my command is running (not a minimized window). I tried the scheduler but I could only run my command at the next minute, not the same time.

Thanks for your time.

Top
#52368 - 2000-11-27 07:51 AM Re: backgroung process
Anonymous
Unregistered


Hya NovaStar..,

I am not sure what you mean with 'NT Console' I think you mean the Windows/NT command interpreter (Dos-Box / MS-Prompt).
If you revere to running an command/appliction from the 'NT Console' you could use START.
Type in 'NT Console' START /? for the complete description.

------------------
To Be Of Service..,
Fabian.
-----------------Paranoia is reality on a finer scale-----------------

Top
#52369 - 2000-11-27 04:28 PM Re: backgroung process
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Nova:

Your question and Fabian's answer got me to experimenting a little and I bumped into some "FUN WITH DOS" type stuff.

Open up a command window and do...

1. cd c:\temp

2. start /b

3. cd ..

Hit return five or six times - what you have
is two simultaneous dos sessions - interleaved into one dos window ! The other interesting thing is if you type "exit" in one of the "sessions" - it kills the other session (not the one your in) ?!?!?

I thought this was kinda cool - I mean - I've always known that you can start another DOS session in a window - then type exit to get back to the previous one - but this is funky !

I would imagine that something like "start /b dir" would be akin to a unix command like "ls &" (which starts a background process) which is probably what you were after.

The only difference is that in DOS - the background session doesn't terminate - you have to type "exit".

Shawn.

Top
#52370 - 2000-11-27 11:28 PM Re: backgroung process
Anonymous
Unregistered


Shawn,
Yes you are write about the extra shells. In Fact everytime you type cmd you open a new shell but unfortunately the parent shell variables does not transfered to the child shell (snif snif). An other bad thing is that you can't push a process to background and stay to the same shell like at unix with "program &" because of IPC (Interprocess Comunication) win32 limitations (no the start /b does not do the job).
PS1 I found a workaround.
ps2 This discussion can go much further but I am afraid is out of topic!

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.053 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org