creating logfile (shell command)

ZIYAD A. M. AL-BATLY zamb at saudi.net.sa
Wed Jul 13 17:41:11 UTC 2005


On Wed, 2005-07-13 at 10:48 +0200, René L. Reingard wrote:
> hello shell experts
> if this is a parameter for getting a Logfile created (software name is  
> bdc), then how to put it into a working command ($ bdc --log ?????).
> i had some tries but did not got it.
> 
>   --log[=file]     - create log file
> 
> that what be fine, if i can learn this.
> regards,
> René
> 
It depends.  Some applications use the form "--log LOGNAME", some use
"--log=LogFile", and others (like "wget" for example) allow both styles.
Just try and see what works for that particular application.

You used "--log[=file]" in your message, I'm assuming you get that from
the help summary or from the manual page.  If that's the case, then that
command probably use the form "--log=LogFile" like this:
        bdc --log=output.log
Which will (probably¹) store the output to a file named "output.log" on
the current directory.

Ziyad.

Footnotes:
     1. It depend on that application for what it will really be logged.




More information about the ubuntu-users mailing list