Date: Mon, 22 Jan 2001 14:46:55 -0700
Reply-To: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Subject: Re: WinNT equivalent of 'nohup' and '&' ???
Content-Type: text/plain; charset=us-ascii
I haven't read that book, but "Windows NT Shell Scripting", by Tim Hill from Macmillan Technical Publishing, shows a wide variety of tricks.
Windows is much more powerful than you would think from reading the Microsoft documentation. As a language, the NT shell is behind REXX or Perl, but even with (or possibly slightly ahead of) OpenVMS DCL. It can do integer arithmetic, parse simple strings, iterate through a set of numbers, perform recursion... It has the equivalent of DO-END groups. Who knew?
If you want to learn one new command, look at all the new stuff in FOR. It's reasonably well documented, but lacking examples.
Development Manager, Technical Group
METRICS Department, First Health
West Sacramento, California USA
>>> "F.J. Kelley" <jkelley@ARCHES.UGA.EDU> 01/22/2001 1:23 PM >>>
A good reference for the NT commands is the O'Reilly book: "Windows NT in
a Nutshell". (the NT commands do not seem well documented on NT itself,
but perhaps I've just missed them)
On Mon, 22 Jan 2001, Bob Burnham wrote:
> Hi Drew,
> I'm not sure that their is a strict equivalent, but have you tried the
> 'start' command in NT? For example, if I'm at the NT command prompt, I
> might type:
> start /b sas my_sas_prog.sas
> This starts SAS running in batch mode in the background.
> Try typing "help start" and you should get a pretty long list of options for
> running the program -- including setting priorities.
> Vice versa -- if you are interested in a more Unixish experience then you
> can download a variety of command shells that run under the NT Command
> Prompt and offer job control, etc.
> Hope this helps and best regards,
> "Drew Spencer" <DrewSpen@Imagin.Net> wrote in message
> > Folks,
> > On Unix I would do a
> > nohup sas -sysin sasprogname.sas &
> > to run something in batch and background. On OS/2 I would do a
> > detach sas -sysin sasprogname.sas
> > to do the same. But is there an equivalent for WinNT and/or Win9x?
> > How would I do this?
> > --
> > Kent Andrew (Drew) Spencer
> > MailTo:DrewSpen@Imagin.Net
> > Bible: http://members.tripod.com/drewspen/KJV_Bible
> > HomePage: http://www.Imagin.Net/~DrewSpen
> > Sent via Deja.com
> > http://www.deja.com/