Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SFU from cmd.exe

3 views
Skip to first unread message

Reynolds McClatchey

unread,
Aug 9, 2009, 5:04:13 PM8/9/09
to
I have used the gnuwin32 suite. No need to install
that if I have SFU, right? So how can I run gzip from
my cmd.exe scripts that used to call "C:\Programs\gnuwin32\bin gzip.exe" to
use the SFU gzip? These are "Scheduled Tasks" so should I
move them to at and run cmd.exe under SFU?


rod...@interopsystems.com

unread,
Aug 17, 2009, 4:52:10 AM8/17/09
to

You can do it two ways: 1) make the script a unix shell script and run
it
under Interix (the Unix component of SFU) with cron/at, or 2) call the
utility directly from the CMD.EXE script.

I think (1) is more straight-forward and clear personally. A shell
script is a better
programming environment than CMD.EXE.

If (2) then you are likely not wanting a console window to open.
Use the utility "psxrun.exe" to invoke the Unix/Interix utility from
Win32/CMD.EXE.
There's a manual page (man psxrun) with more details. An example is:
psxrun -u -- /usr/local/bin/gzip file
All of the arguments and options to the utility should be in Unix
syntax.

Rodney
http://www.SUAcommunity.com

0 new messages