HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

syntax to use Dtterm to open a folder in a new window

 
Golf Cents
Occasional Visitor

syntax to use Dtterm to open a folder in a new window

Hello everyone and thank you in advance for any help with this issue.

I can open a log file in a new window using dtterm example :

dtterm -title "my.log" -geometry =40x30+0+550 -fn 6x13 -e tail -n 40 -f /home/logs/user.log &

[ Equivalent command in unix is :]
(more /home/logs/user.log )


, but cant figure out how to list a folder using dtterm in a new window
[ Equivalent command in unix is : ]
(ls /home/logs/)

1 REPLY

Re: syntax to use Dtterm to open a folder in a new window

Any reason you want to do this, rather than do this in your current window?

>Equivalent command in unix is:] more /home/logs/user.log

The equivalent command is: tail -n 40 -f /home/logs/user.log

Have you tried:
dtterm -title "my.log" -geometry =40x30+0+550 -fn 6x13 -e ls /home/logs/ &

Or does that immediately list and close the window?

Does adding sleep work?
... -e ls /home/logs/; sleep 10 &

Or have you tried:
dtterm -title "my.log" -geometry =40x30+0+550 -fn 6x13 -e ls /home/logs/ | tail -f &