-
Workspace Manager Menus
When I execute this command:
exec xterm –e $SHELL –c “sed –n 4p /folder1/folder2/folder3/file.dat; $SHELL”
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:
“The 4th line is” f.exec xterm –e $SHELL –c “sed –n 4p /folder1/folder2/folder3/file.dat; $SHELL”
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:
“content of the 4th line”
WkOps: /export/home/user $ _
But I only have
WkOps: /export/home/user $ _
I work on Solaris 10
Damien
-
Bonjour,
Tout d'abord, le forum de dvp est francophone (Les règles du Club http://club.developpez.com/regles/#LIII-A ).
Ce qui pourrait se traduire par :
Quand je lance la commande suivante :
Code:
exec xterm e $SHELL c sed n 4p /folder1/folder2/folder3/file.dat; $SHELL
J'ai le résultat attendu : ça ouvre un nouveau terminal, ça affiche la 4éme ligne du fichier et la fenêtre du terminal reste ouverte. Parfait.
Alors j'ai essayé de l'écrire dans le fichier dtwmrc pour avoir une ligne supplémentaire dans le Workspace Manager Menus pour lancer cette commande. J'ai ajouté cette ligne dans le fichier dtwmrc :
Code:
The 4th line is f.exec xterm e $SHELL c sed n 4p /folder1/folder2/folder3/file.dat; $SHELL
Mais le problème est que, quand je clique sur le menu “The 4th line is”, ça ouvre un terminal et ca n'affiche rien.
Je m'attendais à avoir:
“content of the 4th line”
WkOps: /export/home/user $ _
Mais j'ai seulement :
WkOps: /export/home/user $ _
Je travaille sur Solaris 10
...
Une réponse vient d'être apportée sur la toile, que je retranscris telle qu'elle :
Code:
"The 4th line is" f.exec "xterm -e $SHELL -c 'sed -n 4p /folder1/folder2/folder3/file.dat; $SHELL'"
Source :
http://www.unix.com/solaris/254855-w...wmrc-file.html
Workspace Manager Menus - dtwmrc file
Autrement pour nos lecteurs, dtwmrc est le fichier de configuration du gestionnaire de fenêtres dtwm de l'environnement de bureau CDE (Common Desktop Environment) personnalisable.
Références :
http://fr.wikipedia.org/wiki/Common_Desktop_Environment
Common Desktop Environment
http://docs.oracle.com/cd/E19455-01/...jlt/index.html
Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide