LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-16-2003, 12:18 PM   #1
vyeperman3001
Member
 
Registered: Apr 2003
Posts: 31

Rep: Reputation: 15
random crashes of programs......


alright i am on redhat 8.0 and when i double click and a program icon for it to start nothing happens so i tried opening it through terminal and i got to see what it was doing all this code came up for about a half a second and then POOF! terminal shut down which would explain why i never saw the program this happens with a few of them i know there are some games that don't start the clock settings won't start....what is all this can someone help me out on what could be the problem i would have pasted the error but it was up and gone so fast and it happens over and over again but just to fast for me to see or even copy sorry.....if you can help that would be wonderful thanks in advance.......!
 
Old 04-16-2003, 12:24 PM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
uhh... missing library maybe? anyone?

next time you go to run a program from the command prompt run it like this...
$ <program-name> 2>&1 > output.txt

this will dump all output to a text file (output.txt) that can be reviewed later on... you could also try an strace on that same program... it will give you more debug information.

Last edited by jpbarto; 04-16-2003 at 12:27 PM.
 
Old 04-16-2003, 02:06 PM   #3
vyeperman3001
Member
 
Registered: Apr 2003
Posts: 31

Original Poster
Rep: Reputation: 15
[root@localhost root]# $<program-Date & Time> 2>&1 >output.txt
bash: syntax error near unexpected token `2'
_______________________________________________________________
any idea's......cuz that didn't work......thanks in advance.....
 
Old 04-16-2003, 02:12 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Dont log in as root for normal working.

Try the_name_of_the_program > output.txt
I think the &1 bit mean any arguements you were passing to the program when trying to load it, eg maybe a url or something.
 
Old 04-16-2003, 03:07 PM   #5
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
example:

ls 2>&1 1> output.txt

what the '2>&1' does is feed any error messages into standard output stream (1). if you just typed
ls 1> output.txt
then you would get all output from standard output into output.txt and any errors (which are written to standard error) would be lost after printed to the screen.
but you could also type
ls 1> output.txt 2>errors.txt
and that would put standard output (like the directory listing) into output.txt and if any errors occurred then they would get written to errors.txt.

so by typing 2>&1 you are telling both standard output AND standard error to be written to standard output. then standard output is redirected to output.txt with 1>output.txt
 
Old 04-16-2003, 03:09 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
My bad. Learn something new everyday
 
Old 04-16-2003, 03:15 PM   #7
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
no prob... I guess too many '>'s and '<'s really can get in the way of an explanation though huh.
 
  


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
Random Server Crashes teamchachi Linux - General 2 10-20-2005 09:32 AM
random crashes byte.chaser Debian 34 07-01-2005 12:08 PM
OpenGL random crashes m00t00 Linux - Games 3 10-01-2004 07:51 AM
2.6.7 kernel random crashes chakkerz Linux - General 4 06-28-2004 08:05 PM
random system crashes gbrad Linux - Hardware 1 01-04-2004 10:22 PM


All times are GMT -5. The time now is 10:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration