Operating System - HP-UX
1751791 Members
4774 Online
108781 Solutions
New Discussion

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

 
Golf Cents
New Member

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 1
Dennis Handly
Acclaimed Contributor

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 &