Unix Shell - export the results of the commands executed

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2006 > export the results of the commands executed





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author export the results of the commands executed
gunajoe@gmail.com

2006-01-29, 9:31 pm

Hi ,


I am just now learning the unix scripts . i want to export the results
of the commands executed on the command prompt. Can any one please help
me on this


regards,
F Joe Gladston

surfer dude

2006-01-29, 9:31 pm

[This followup was posted to comp.unix.shell]

While wandering through cyberspace on 28 Jan 2006 04:31:52 -0800, said
....
> Hi ,
>
> I am just now learning the unix scripts . i want to export the results
> of the commands executed on the command prompt. Can any one please help
> me on this
>
> regards,
> F Joe Gladston



Your wording is somewhat unclear. What do you mean by "export the
results of the commands executed on the command prompt" ?

You can redirect the output of any command into a file as follows:

command arg1 arg2 >outputfile.txt

Chris F.A. Johnson

2006-01-29, 9:31 pm

On 2006-01-28, gunajoe@gmail.com wrote:
>
> I am just now learning the unix scripts . i want to export the results
> of the commands executed on the command prompt. Can any one please help
> me on this


What do you mean by export?

When you execute a command at a shell prompt, it usually sends its
output to the standard output channel (a.k.a. stdout), and error
messages to standard error (stderr).

Under normal circumstances stdout and stderr are connected to the
terminal. This output may be redirected to a file:

command > FILE

or a pipe:

command | another_command

or captured with command substitution:

var=`command`

or

var=$(command)

With those commands, the stdout is redirected, but stderr will
still go to the terminal.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Kenny McCormack

2006-01-29, 9:31 pm

In article <1138451512.166863.121780@z14g2000cwz.googlegroups.com>,
<gunajoe@gmail.com> wrote:
>Hi ,
>
>
>I am just now learning the unix scripts . i want to export the results
>of the commands executed on the command prompt. Can any one please help
>me on this


You probably need an import/export license for this, and, of course, to
fill out the necessary government paperwork, but basically, all you have to
do is email it to someone in another country. That should count as
exporting it.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com