Linux Newbie help
 help / color / mirror / Atom feed
* Tcsh: Append output to a file
@ 2002-05-15  1:01 Axel H. Siebenwirth
  0 siblings, 0 replies; 8+ messages in thread
From: Axel H. Siebenwirth @ 2002-05-15  1:01 UTC (permalink / raw)
  To: linux-newbie

Hello!

For example I use "/usr/local/sbin/dsniff >& dsniff.log &" in a start-up
skript to log the output to a file. But everytime I start my computer a new
file "dsniff.log" is created.

My question is: How do I append to an existing file?


Thank you,
Axel Siebenwirth
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tcsh: Append output to a file
@ 2002-05-15  1:08 Ray Olszewski
  2002-05-15  1:17 ` Axel H. Siebenwirth
  2002-05-16 17:27 ` Laptop Hardware Dan Bentson-Royal
  0 siblings, 2 replies; 8+ messages in thread
From: Ray Olszewski @ 2002-05-15  1:08 UTC (permalink / raw)
  To: Axel H. Siebenwirth, linux-newbie

At 03:01 AM 5/15/02 +0200, Axel H. Siebenwirth wrote:
>Hello!
>
>For example I use "/usr/local/sbin/dsniff >& dsniff.log &" in a start-up
>skript to log the output to a file. But everytime I start my computer a new
>file "dsniff.log" is created.
>
>My question is: How do I append to an existing file?

/usr/local/sbin/dsniff >>& dsniff.log &

The double >> is the "append" instruction.


--
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA           	 	         ray@comarre.com        
----------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tcsh: Append output to a file
  2002-05-15  1:08 Tcsh: Append output to a file Ray Olszewski
@ 2002-05-15  1:17 ` Axel H. Siebenwirth
  2002-05-15  2:44   ` lawson_whitney
  2002-05-15  6:52   ` Steven Smith
  2002-05-16 17:27 ` Laptop Hardware Dan Bentson-Royal
  1 sibling, 2 replies; 8+ messages in thread
From: Axel H. Siebenwirth @ 2002-05-15  1:17 UTC (permalink / raw)
  To: Ray Olszewski; +Cc: linux-newbie

Hi!

On Tue, 14 May 2002, Ray Olszewski wrote:

> At 03:01 AM 5/15/02 +0200, Axel H. Siebenwirth wrote:
> >Hello!
> >
> >For example I use "/usr/local/sbin/dsniff >& dsniff.log &" in a start-up
> >skript to log the output to a file. But everytime I start my computer a new
> >file "dsniff.log" is created.
> >
> >My question is: How do I append to an existing file?
> 
> /usr/local/sbin/dsniff >>& dsniff.log &
> 
> The double >> is the "append" instruction.

Okay. First off, thank you!
I confused myself. Shell chaos. I'm using tcsh as all my login shells. But
the startup scripts are all bash scripts. So I really asked my self why what
you told me works on command line but not from the script.

Can you please tell me how to the same thing for bash? :)

Thank you,
Axel Siebenwirth
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tcsh: Append output to a file
  2002-05-15  1:17 ` Axel H. Siebenwirth
@ 2002-05-15  2:44   ` lawson_whitney
  2002-05-15  6:52   ` Steven Smith
  1 sibling, 0 replies; 8+ messages in thread
From: lawson_whitney @ 2002-05-15  2:44 UTC (permalink / raw)
  To: axel; +Cc: linux-newbie

On Wed, 15 May 2002, Axel H. Siebenwirth wrote:

>
> Okay. First off, thank you!
> I confused myself. Shell chaos. I'm using tcsh as all my login shells. But
> the startup scripts are all bash scripts. So I really asked my self why what
> you told me works on command line but not from the script.
>
> Can you please tell me how to the same thing for bash? :)
>
> Thank you,
> Axel Siebenwirth
> -
First off, you don't _have_ to use bash for scripts.  Instead of
starting the script #!/bin/[ba]sh, it can start #!/bin/tcsh.

If you want to use bash, this should do it:

Script started on Tue May 14 22:38:27 2002
[whit@giftie whit]$ echo $SHELL >file 2>&1
[whit@giftie whit]$ echo $SHELL $SHELL >>file 2>&1
[whit@giftie whit]$ cat file
/bin/bash
/bin/bash /bin/bash
[whit@giftie whit]$ exit

Script done on Tue May 14 22:39:30 2002

Lawson
---oof---



________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Tcsh: Append output to a file
  2002-05-15  1:17 ` Axel H. Siebenwirth
  2002-05-15  2:44   ` lawson_whitney
@ 2002-05-15  6:52   ` Steven Smith
  1 sibling, 0 replies; 8+ messages in thread
From: Steven Smith @ 2002-05-15  6:52 UTC (permalink / raw)
  To: linux-newbie

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

> > >My question is: How do I append to an existing file?
> > /usr/local/sbin/dsniff >>& dsniff.log &
> Can you please tell me how to the same thing for bash? :)
/usr/local/sbin/dsniff >> dsniff.log &

if you just want output in the file,

/usr/local/sbin/dsniff >> dsniff.log 2>&1 &

if you want output and errors.

Steven Smith,
sos22@cam.ac.uk.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Laptop Hardware
  2002-05-15  1:08 Tcsh: Append output to a file Ray Olszewski
  2002-05-15  1:17 ` Axel H. Siebenwirth
@ 2002-05-16 17:27 ` Dan Bentson-Royal
  2002-05-16 18:58   ` Richard Adams
  2002-05-16 19:28   ` Bob Batson
  1 sibling, 2 replies; 8+ messages in thread
From: Dan Bentson-Royal @ 2002-05-16 17:27 UTC (permalink / raw)
  To: linux-newbie

I am about to purchase a new laptop. Is there a place where I can find caveats
about what hardware is going to be trouble free? I am buying a MITAC
laptop and want to make sure that I don't have some bizarre problem with
the video chipset or other. I'll go with a RedHat install.

Thanks for anything you can suggest!
 
-- 
Dan Bentson-Royal

  "It is better to know some of the questions than all of the answers"
  --James Thurber


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Laptop Hardware
  2002-05-16 17:27 ` Laptop Hardware Dan Bentson-Royal
@ 2002-05-16 18:58   ` Richard Adams
  2002-05-16 19:28   ` Bob Batson
  1 sibling, 0 replies; 8+ messages in thread
From: Richard Adams @ 2002-05-16 18:58 UTC (permalink / raw)
  To: Dan Bentson-Royal, linux-newbie

On Thursday 16 May 2002 17:27, Dan Bentson-Royal wrote:
> I am about to purchase a new laptop. Is there a place where I can find
> caveats about what hardware is going to be trouble free? I am buying a
> MITAC laptop and want to make sure that I don't have some bizarre problem
> with the video chipset or other. I'll go with a RedHat install.

I have no idea if there is even a URL for this, however you mentioned video, 
now that is the most important, i suggest you ask the shop keeper what video 
set it has and check it out at http://xfree86.org
Even tho' i have never heard of that make of laptop i doubt if you will have 
any problems at all as redhat is very good with laptops.

O yes, one problem with may occur is a standard 56K tel modem, most laptops 
have a lucent chip modem, that in itself is no problem as it can be gotten to 
work under linux.

>
> Thanks for anything you can suggest!

-- 
Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Laptop Hardware
  2002-05-16 17:27 ` Laptop Hardware Dan Bentson-Royal
  2002-05-16 18:58   ` Richard Adams
@ 2002-05-16 19:28   ` Bob Batson
  1 sibling, 0 replies; 8+ messages in thread
From: Bob Batson @ 2002-05-16 19:28 UTC (permalink / raw)
  To: Dan Bentson-Royal, linux-newbie

At 10:27 AM -0700 5/16/02, Dan Bentson-Royal wrote:

>I am about to purchase a new laptop. Is there a place where I can find caveats
>about what hardware is going to be trouble free? ....

You might check http://www.notebookreview.com/ and look for any links 
about hardware.

-- 
Bob Batson
rcb@kc.rr.com

Chocolate is the true opiate of the masses!
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-05-16 19:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-15  1:08 Tcsh: Append output to a file Ray Olszewski
2002-05-15  1:17 ` Axel H. Siebenwirth
2002-05-15  2:44   ` lawson_whitney
2002-05-15  6:52   ` Steven Smith
2002-05-16 17:27 ` Laptop Hardware Dan Bentson-Royal
2002-05-16 18:58   ` Richard Adams
2002-05-16 19:28   ` Bob Batson
  -- strict thread matches above, loose matches on Subject: below --
2002-05-15  1:01 Tcsh: Append output to a file Axel H. Siebenwirth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox