LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2004, 03:56 PM   #1
kenners
LQ Newbie
 
Registered: Oct 2004
Location: troy, ny
Distribution: Debian / Freebsd
Posts: 2

Rep: Reputation: 0
bash output redirection: debian vs freebsd


I'm running debian 3.0r2 on one box and freebsd-4.9-STABLE on another, both using bash.


bash on the freebsd box works with the following command:

./executable > status.out &

as data hits stdout, the lines show up in status.out (viewed in another terminal via tail -f)

on the debian box, the following command
./executable > status.out &

won't close the file until the program terminates
as such, the output doesn't show up in another terminal via tail -f until the program ends or is stopped.

is there any configuration option / hack fix to fix this? are the linked libraries to blame?
 
Old 10-07-2004, 04:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What is the executable?

All our deb-servers behave as expected ...


Cheers,
Tink
 
Old 10-07-2004, 04:56 PM   #3
kenners
LQ Newbie
 
Registered: Oct 2004
Location: troy, ny
Distribution: Debian / Freebsd
Posts: 2

Original Poster
Rep: Reputation: 0
i'm running (on both)

btlaunchmany > ~/public_html/output.txt &

(in the case of freebsd, the command is btlaunchmany.py, but they're both python-interpreted files)

I think it may be due to the program since
tail -f /var/log/syslog > ~/public_html/output.txt &
works on the debian box

kinda embarassed i didn't try that earlier....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is output redirection? LinuxPadawan General 5 05-18-2005 12:53 PM
Output redirection rmartine Linux - Newbie 2 01-25-2005 06:31 PM
Port redirection on FreeBSD zemo Linux - Networking 1 10-15-2003 07:56 AM
output redirection to another directory spyghost Linux - Software 3 09-21-2003 09:28 AM
Output redirection legtester Linux - General 4 07-07-2003 02:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration