When I execute this command:
I have the expecting result: It opens an new terminal, it shows the 4th line of the file and the terminal window stays open perfect.
So I tried to write it in the dtwmrc file to have an extra line in the Workspace Manager Menus to execute this command. I add this line in the dtwmrc file:
But the problem is when I click on the menu “The 4th line is”, it opens a terminal and shows nothing.
I expected to have:
But I only have
I work on Solaris 10
Damien
Code:
exec xterm –e $SHELL –c “sed –n 4p /folder1/folder2/folder3/file.dat; $SHELL”
So I tried to write it in the dtwmrc file to have an extra line in the Workspace Manager Menus to execute this command. I add this line in the dtwmrc file:
Code:
“The 4th line is” f.exec xterm –e $SHELL –c “sed –n 4p /folder1/folder2/folder3/file.dat; $SHELL”
I expected to have:
Code:
“content of the 4th line”
WkOps: /export/home/user $ _
Code:
WkOps: /export/home/user $ _
Damien