fmII
Mon, Oct 06th home | browse | articles | contact | chat | submit | faq | newsletter | about | stats | scoop 15:37 UTC
in
Section
login «
register «
recover password «
[Project] add release | add branch | add screenshot | broken links | change owner | email subscribers | update project | update branch (urls) [Project]

 tmpf - Default branch
Section: Unix

 

Added: Fri, May 4th 2007 12:24 UTC (1 year, 5 months ago) Updated: Fri, May 4th 2007 17:09 UTC (1 year, 5 months ago)


About:
Tmpf is tiny script (written in Ruby) to write standard output to a temporary file, run an application with the name of that file as an argument, then delete the temporary file when done. This is useful when you want to pipe output to a program that only accepts files, not standard input. Example: cat myfile.ps | tmpf gv (equivalent to: gv myfile.ps). Despite the incredible simplicity of this script, there is nothing quite like it provided among the standard Unix tools.

Author:
hajhouse [contact developer]

Rating:
(not rated)

Homepage:
http://hajhouse.org/linux/
Tar/GZ:
http://hajhouse.org/linux/tmpf.rb.gz

Trove categories: [change]
[Development Status]  5 - Production/Stable
[Environment]  Console (Text Based)
[Intended Audience]  Advanced End Users
[License]  Public Domain
[Operating System]  POSIX
[Programming Language]  Ruby
[Topic]  System :: Systems Administration, Utilities

Dependencies: [change]
No dependencies filed

 
Project admins: [change]
» hajhouse (Owner)

» Rating: (not rated)
» Vitality: 0.00% (Rank 25525)
» Popularity: 0.12% (Rank 32495)

project statsdownload stats
(click to enlarge graphs)
   Record hits: 947
   URL hits: 161
   Subscribers: 4

Other projects from the same categories:
Remote Secure Command System
nfstimesync
CookiePie
GPI
C3 Power Tools

Users who subscribed to this project also subscribed to:
PolarViewer
DNS Control
mSyslog UI
CGI::Uploader
Credential Validation Module


Add comment · Rate this project · Subscribe to new releases · Ignore this project · Email this project to a friend · Project record in XML

 Branches

Branch Version Last release License URLs
Default 1.0 04-May-2007 Public Domain Homepage Tar/GZ

 Comments

[»] as much as I like Ruby...
by Michael Shigorin - May 5th 2007 00:31:41

incredibly simple scripts are better in shell. :)

e.g. while read line; do echo $line; done instead of input.readlines.each do ... end; there's also mktemp(1).

To avoid having an (unneeded) shell hanging around folks tend to use exec cmd instead of final cmd (implying a return followed by normal exit).

--
Michael Shigorin mike SOMEWHERE AT altlinux PLUS DOT org

[reply] [top]




© Copyright 2008 SourceForge, Inc., All Rights Reserved.
About freshmeat.net •  Privacy Statement •  Terms of Use •  Trademark Guidelines •  Advertise •  Contact Us • 
ThinkGeek •  Slashdot  •  Linux.com •  SourceForge.net  •  Jobs