OS4 DepotLogo by Marko 
(anonymous IP: 3.145.89.89,2258) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (149)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4399

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: https://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