Linux SoftwareSystemShellsd command 5.3

d command 5.3


The d command runs a command in the background and redirects its output to a file
Developer:   Dave Yost
      more software by author →
Price:  0.00
License:   Free for non-commercial use
File size:   8K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


The d command runs a command in the background and redirects its output to a file. The output file is annotated with start and end time, the actual command used, cwd, host, etc.

You can ask the d command to extract the last command from the output file and run it again, you can ask it to append to the file or not, and other goodies.

It comes with handy little programs to look at the output, tail it, etc. d command is sort of trivial, but has been streamlined over many years.

Usage: d [ -f file ] c[n][a][p] cmd arg ...
or: d [ -f file ] m[n][a][p] [ make_arg ... ]
or: d [ -f file ] s[n][a][p] [ additional_arg ... ]
or: d [ -f file ] h

Do a task in the background, with its stdout and stderr redirected to a file called out or to file or to a file named by a $yostD_OUTFILE environment variable. The d command usually does

mv ,out out

and then creates a new out file, but d can be told to append to out instead.

The task argument is composed of individual letters:

One of these is required:

c Do the following command - redirection and piping work if quoted.
m Do a make.
s Do the same command again (extract the last command from out, and run it again (without 'nice' unless you ask for it again).
h Print a history of what happened in this out file.
These are optional:
n Do it nicely.
a Append to out.
p Just print the command that would be executed; don't run it.

The d command comes along with several helper shell functions:

q tail -f out
qq cat out
qt tail -20 out
cq clear ; q
cqq clear ; qq
wq wait "$@" ; printf "b" ; qq
wqt wait "$@" ; printf "b" ; qt

The output from d into the file out consists of

prologue
output from the command
epilogue

as shown in the example below, which does this:

Run a command (c) in the background, with output to the out file.

Run the same (s) comand again, with nice (n), appending (a) the output to the existing out file.

Show the out file.

Show what will happen (p) if we try to run the same command again, using ‘d s’.

Show the history (h) of commands and results contained in the out file.

What's New in This Release:
  • "d s" now echoes the command it will execute.
  • The behavior of "d s" was corrected when the output file doesn't exist.
    tags out file  the output  the command  the same  the background  the out  output file  show the  same command  command again  output from  file show  run the  

    Download d command 5.3


     http://yost.com/computers/d/d.sh


    Authors software

    d command 5.3 (by Dave Yost)
    The d command runs a command in the background and redirects its output to a file


    Similar software

    d command 5.3 (by Dave Yost)
    The d command runs a command in the background and redirects its output to a file

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    Tail Server 0.2.1w (by Andrea Orazi)
    Tail server allows you to export the output of a "tail -f" command of a log file to a TCP port, allowing it to be viewed remotely wit

    AFS::Command::BOS 1.7 (by AFS::Command::BOS Team)
    AFS::Command::BOS is a OO API to the AFS bos command.

    SYNOPSIS

    use AFS::Command::BOS;

    my $bos = AFS::Command::BOS->n

    AFS::Command::PTS 1.7 (by AFS::Command Team)
    AFS::Command::PTS is a OO API to the AFS pts command.

    SYNOPSIS

    use AFS::Command::PTS;

    my $pts = AFS::Command::PTS->n

    AFS::Command::FS 1.7 (by AFS::Command::FS Team)
    AFS::Command::FS is a OO API to the AFS fs command.

    SYNOPSIS

    use AFS::Command::FS;

    my $fs = AFS::Command::FS->new();

    PHP Shell 2.1 (by Martin Geisler)
    PHP Shell is a shell wrapped in a PHP script

    MySmartCI 1.2.0 (by MaaSTaaR)

    Simultaneous Remote Command 0.1 (by Tdj)
    Simultaneous Remote Command sends multiple commands to multiple servers simultaneously.

    When you manage several server, you can wa

    acoc 0.7.1 (by Ian Macdonald)
    acoc is an arbitrary command output colourer.

    Ever wondered why the output of your favourite UNIX/Linux commands is still displaye


    Other software in this category

    AmigaSHELL 2.3 (by Commodore-Amiga, Inc.)
    AmigaSHELL makes your boring gray on black colored bash shell revive like in the old days

    Gsh 0.1.3 (by Bellsouth)
    Gsh is designed to do two things:

    1

    nxt 4.1.0 (by Free Software Foundation, Inc.)
    nxt is one of Magic Hand command

    vshnu 1.0211 (by Steve Kinzler)
    Vshnu is a visual shell for Linux/Unix finally done right

    Zoidberg 0.96 (by Raoul Zwart)
    Zoidberg (a.k.a

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags