Date: Tue, 23 Jan 2001 14:52:58 GMT
Reply-To: Drew Spencer <drewspen@MY-DEJA.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Drew Spencer <drewspen@MY-DEJA.COM>
Organization: Deja.com
Subject: Re: WinNT equivalent of 'nohup' and '&' ???
Folks,
A number of excellent methods were posted, but the one I like best
involves having the below batch file in the winnt directory...
@echo off
start /b "C:\Program Files\SAS Institute\SAS\V8\sas.exe" -nodms -sysin %
1
--
Kent Andrew (Drew) Spencer
MailTo:DrewSpen@Imagin.Net
Bible: http://members.tripod.com/drewspen/KJV_Bible
HomePage: Http://www.Imagin.Net/~DrewSpen
In article <sa6c47f9.010@SLCM02.firsthealth.com>,
Jack Hamilton <JackHamilton@FIRSTHEALTH.COM> wrote:
> 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.
>
> --
> JackHamilton@FirstHealth.com
> 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,
> >
> > Bob
> >
> > "Drew Spencer" <DrewSpen@Imagin.Net> wrote in message
> > news:94htsv$v72$1@nnrp1.deja.com...
> > > 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/
> >
>
Sent via Deja.com
http://www.deja.com/
|