Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Command works in KSH, but not in DOS Shell?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Command works in KSH, but not in DOS Shell? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Command works in KSH, but not in DOS Shell? - Jan. 31, '06, 3:45:53 PM   
edalzell

 

Posts: 9
Joined: Jan. 25, '06,
Status: offline
I am trying to determine if my program is running. If I run:
ps -ef |grep inNMT|grep -v grep

in the KSH and it returns something, my program is running. If nothing is
returned, my program isn't running. Simple, right?

The problem is that when I make the same call from the commandline:

posix.exe /u /c /bin/ksh -l -c ps -ef |grep inNMT|grep -v grep

nothing is ever returned!

Does grep not output to stdout?

Thanks
Post #: 1
RE: Command works in KSH, but not in DOS Shell? - Jan. 31, '06, 3:56:32 PM   
edalzell

 

Posts: 9
Joined: Jan. 25, '06,
Status: offline
Turns out you have to surround the ps stuff with quotes, i.e.
posix.exe /u /c /bin/ksh -l -c "ps -ef |grep inNMT|grep -v grep"

(in reply to edalzell)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Command works in KSH, but not in DOS Shell? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047