OS4 DepotLogo by Marko 
(anonymous IP: 3.145.64.241,2194) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1005)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (924)
   o Video (69)

Total files: 4367

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 File comments for:  Utility » Misc » foreach_igracki.lha

Foreach Igracki

Description: Execute a command for every argument
Download: foreach_igracki.lha
Version: 1.1
Date: 28 Jul 2013
Category: utility/misc
FileID: 8103
RSS Feed url: http://eu.os4depot.net/modules/comments/rssfeed.php?file=utility/misc/foreach_igracki.lha

[Back to readme page]   [Add Comment]   [Refresh page]

Comment by: Severin (91.125.91.55)At: 07 Aug 2013, 00:49File version: 1.1
I tried Foreach tonight and would like to be able to use %s at least twice in the command for redireting the output from a program that just dumps data to the shell eg.

Foreach FILE "#?.jpg" DO "djpeg -scale 1/8 %s >ram:%s"

gives:

NIL::1: djpeg: unable to open redirection file
NIL::1: djpeg failed returncode 10

with verbose on I get:

> Foreach FILE "#?.jpg" DO "djpeg -scale 1/8 %s >ram:%s" verbose
0. cmd = "djpeg -scale 1/8 8033.jpg >ram:"
NIL::1: djpeg: unable to open redirection file
NIL::1: djpeg failed returncode 10

It would be far easier than doing;

list #?.jpg lformat "djpeg -scale 1/8 *"%N*" >*"ram:%N*"" to pipe: | execute pipe:

all the time...
 
 

Copyright © 2004-2024 by Björn Hagström All Rights Reserved