LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-09-2005, 08:58 AM   #1
scottjwoodford
LQ Newbie
 
Registered: Jun 2005
Posts: 27

Rep: Reputation: 15
Newline in xmessage?


Hello all,

Trying to figure out how to insert a newline character in an xmessage window. I realize there's no built-in way to do it, but does anyone have any ideas? I can get it to work if I use "-file" and specify a file that has wrapped text, but I can't use that because I need to pass variables from the command line. Thanks in advance,

Scott
 
Old 06-09-2005, 10:59 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Try :
Code:
echo -e "Hello,\nThis is\na multiple lines\nmessage" | xmessage -file -
 
Old 06-09-2005, 03:17 PM   #3
scottjwoodford
LQ Newbie
 
Registered: Jun 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks Keefaz. That works great!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cronjob and xmessage esteeven Linux - Software 3 09-14-2005 04:25 AM
xmessage on network masand Programming 0 04-09-2004 09:09 AM
xmessage vs mandrake perdesiz Linux - Software 2 09-17-2003 03:52 AM
xmessage installation and howto x2000koh Linux - General 0 07-30-2003 09:09 PM
xmessage origin zindadilfaiz Linux - Networking 2 02-19-2003 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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