Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

input redirection

 [1/11] from: rebolask::free::fr at: 26-Jan-2003 16:30


I tried this redirection rebol.exe -s myprog.r "param1=something" < input.dat it doesn't work since it takes it as parameter also. So what would be the right syntax ? Thanks

 [2/11] from: athymik:ifrance at: 26-Jan-2003 18:46


Hi Rebolask !
> I tried this redirection > rebol.exe -s myprog.r "param1=something" < input.dat > > it doesn't work since it takes it as parameter also. So what would be the right syntax ? > > Thanks
cat input.dat | rebol.exe -s myprog.r "param1=something" seems to work. Athymik

 [3/11] from: rebolask:free at: 26-Jan-2003 19:11


cat ? I suppose it is Unix but i'm on Windows :)

 [4/11] from: rhm:cdepot at: 26-Jan-2003 10:48


There's a free package of "UNIX" commands for Windows. You can download it from my web site http://www.volcano.net/~rhm/download/unxutils.tgz ============ Dick McCullough knowledge := man do identify od existent done knowledge haspart proposition list ----- Original Message ----- From: [rebolask--free--fr] To: [rebol-list--rebol--com] Sent: Sunday, January 26, 2003 10:00 AM Subject: [REBOL] Re: input redirection cat ? I suppose it is Unix but i'm on Windows :)

 [5/11] from: athymik:ifrance at: 26-Jan-2003 20:30


Oh ? Windows ? What's that ??? ;-D Did you try replacing cat by echo or type ?

 [6/11] from: tomc:darkwing:uoregon at: 26-Jan-2003 14:19


I have used the dos command 'type' in place of cat on windows type input.dat | ... might work in this case as well On Sun, 26 Jan 2003, [rebolask--free--fr] wrote:

 [7/11] from: anton:lexicon at: 27-Jan-2003 13:34


Why don't you just pass the name of the input file as a parameter and use rebol to read it? That's more portable, anyway. Otherwise, what are you trying to do? Anton.

 [8/11] from: rebolask:free at: 27-Jan-2003 10:16


thanks I will try it.

 [9/11] from: rebolask:free at: 27-Jan-2003 10:14


Because the program was made by somebody else and it is a shell program and I don't have have time to recode it. So I want to simulate the user's entry which is done in 1 second with copy and paste but needs to be fully automated by an online command.

 [10/11] from: rebolask:free at: 27-Jan-2003 10:20


Normal people uses windows :) I din't think about type or echo but yes it should work.

 [11/11] from: rebolask:free at: 29-Jan-2003 23:17


Oh sorry I missed the thread the first time. Well great unix on dos that's what I was looking for for a long time :)