RoxTerm & Bash

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

RoxTerm & Bash

#1 Post by RSH »

Is it possible to run roxterm or rxvt from script and let them load a simple text file?

Please help! :?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#2 Post by seaside »

RSH,

Perhaps this -

Code: Select all

xterm -hold -e cat somefile.txt
//cheers
s

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#3 Post by RSH »

seaside wrote:RSH,

Perhaps this -

Code: Select all

xterm -hold -e cat somefile.txt
//cheers
s
Yes, this works. :)

But i want the xterm stay usable after loading the text file - actually it doesn't. It closes after hitting enter. :(

Any hints?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#4 Post by seaside »

RSH,

Maybe this -

Code: Select all

echo '#! /bin/bash
$@
/bin/bash'> /usr/bin/helper
chmod 755  /usr/bin/helper
 rxvt -e /usr/bin/helper cat  somefile.txt
placed in your script.

Cheers,
s

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#5 Post by RSH »

seaside wrote:RSH,

Maybe this -

Code: Select all

echo '#! /bin/bash
$@
/bin/bash'> /usr/bin/helper
chmod 755  /usr/bin/helper
 rxvt -e /usr/bin/helper cat  somefile.txt
placed in your script.

Cheers,
s
Yes, that's it! :D

Thank you very much, seaside! 8)
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Post Reply