LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2015, 01:51 PM   #1
neutrino-pl
LQ Newbie
 
Registered: Nov 2013
Posts: 11

Rep: Reputation: Disabled
stdout to file in tmp directory


When I run CLI application from bash I get some text messages generated into stdout, which is console window in that case. But running the same app from startup script with no CLI window opened I get all text messages put into file which is located in /tmp directory. Is it possible to disable this?
 
Old 03-18-2015, 02:07 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,165

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Depends on the app and also how your startup script calls it try
Code:
someapp 1>/dev/null 2>/dev/null
Or if you are using BASH
Code:
someapp &>/dev/null

Last edited by Keith Hedger; 03-18-2015 at 02:13 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cat:/tmp/ts/session not such file or directory mcs_o8_01 Linux - Newbie 1 09-21-2010 11:07 AM
I have this strange socket file in /tmp its name is agent.4547 in a directory called vl23 Linux - Security 3 04-14-2010 04:21 PM
Can't empty the /tmp directory Read-only file system warning roctaiwan Linux - Newbie 8 03-04-2010 06:24 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 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