Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 07-14-2010, 01:31 PM   #1
LQ Newbie
Registered: Jul 2010
Distribution: Red Hat Commercial
Posts: 16

Rep: Reputation: 2
Diverting IDL output to the command line

Hey all,

I'm troubleshooting a batch of scripts I'm modifying, including an IDL script called by a .csh script. I'm totally new to IDL- the IDL scripts were provided to me by a coworker and my .csh script is intended to automate a lengthy set of extremely tedious and time consuming processing tasks.

I am currently in the process of debugging, and can't get the IDL to print any messages other than critical failures to the screen. Is there any easy way to redirect the stdout to either a logfile or the screen?

Thanks in advance,
Old 07-15-2010, 09:36 AM   #2
LQ Newbie
Registered: Jan 2010
Posts: 9

Rep: Reputation: 2

If the program is a command line program, and its not printing to the screen, then it is most likely not writing to stdout to begin with. There may be verbose options that will turn on additional print-out, however I'm not familiar with the 'IDL' program off the top of my head.

If it _is_ printing a bunch of stuff to screen, but you can't capture it, the problem may be that its using stderr, in which case you can redirect stderr to a logfile like so:
1 members found this post helpful.
Old 07-15-2010, 04:39 PM   #3
LQ Newbie
Registered: Jul 2010
Distribution: Red Hat Commercial
Posts: 16

Original Poster
Rep: Reputation: 2
Thanks for the link. Found out the issue wasn't with printing though, my variables weren't passing correctly from one function module to another. Still, this will give me something more to work with.

Thanks again,


io, redirection

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
bash - output blank line after each command j0hnsmith Linux - General 2 10-22-2009 12:05 AM
trying to output only first line of command out put dave247 Debian 2 11-03-2008 04:36 PM
Command line to get output on a file satimis Programming 4 06-24-2005 06:04 AM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:01 PM.

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