Re: [Freedos-user] Doubt on batch stuff

2007-04-26 Thread Mark Blain
"Geraldo Netto" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > (actualy winnt cmd)... Winnt cmd is quite different than freedos command. If you are looking for an efficient winnt cmd solution, you may want to repost your question in

Re: [Freedos-user] Doubt on batch stuff

2007-04-25 Thread Bernd Blaauw
Geraldo Netto schreef: > for i in $( cat $1 ); do > nslookup $i >> nslookup_log.txt > done > > it catches the content of a file passed($1) and does nslookup for each > entry of the file > > and i would like to know how to rewrite it for command, by now i have this: > @echo off > for %%p in

Re: [Freedos-user] Doubt on batch stuff

2007-04-25 Thread Geraldo Netto
Hi Florian, Oh, sure, i knew it, but the problem is that i can not use it on my job, it depends of my boss authorization to use bash or 4dos (...) this is why i asked specifying command.com (actualy winnt cmd)... Regards, Geraldo On 25/04/07, Florian Xaver <[EMAIL PROTECTED]> wrote: > You know

Re: [Freedos-user] Doubt on batch stuff

2007-04-25 Thread Geraldo Netto
Oh, Thanks i'll take a look Geraldo On 24/04/07, ice <[EMAIL PROTECTED]> wrote: > On Tue, 24 Apr 2007, Geraldo Netto wrote: > > > and i would like to know how to rewrite it for command, by now i > > have this: > > for %%p in ( entries separated by spaces ) do nslookup %%p >> > > nslookup_log.txt

Re: [Freedos-user] Doubt on batch stuff

2007-04-24 Thread Florian Xaver
You know, that you can use BASH under DOS? And that with 4DOS a much better UI is available`? Bye Flo On 4/25/07, ice <[EMAIL PROTECTED]> wrote: > On Tue, 24 Apr 2007, Geraldo Netto wrote: > > > and i would like to know how to rewrite it for command, by now i > > have this: > > for %%p in ( entr

Re: [Freedos-user] Doubt on batch stuff

2007-04-24 Thread ice
On Tue, 24 Apr 2007, Geraldo Netto wrote: > and i would like to know how to rewrite it for command, by now i > have this: > for %%p in ( entries separated by spaces ) do nslookup %%p >> > nslookup_log.txt > any idea on how to pass a file as argument? for %host in (host1 host2 host3) do nslookup

[Freedos-user] Doubt on batch stuff

2007-04-24 Thread Geraldo Netto
Hi Guys, How are you? uh, i have the follow script written for bash: #!/bin/sh for i in $( cat $1 ); do nslookup $i >> nslookup_log.txt done it catches the content of a file passed($1) and does nslookup for each entry of the file and i would like to know how to rewrite it for command,