Sponsored Content
Operating Systems Solaris Workspace Manager Menus - dtwmrc file Post 302932897 by damientdm on Monday 26th of January 2015 07:13:39 AM
Old 01-26-2015
Workspace Manager Menus - dtwmrc file

When I execute this command:
Code:
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:
Code:
“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:
Code:
“content of the 4th line”
WkOps: /export/home/user $ _

But I only have
Code:
WkOps: /export/home/user $ _

I work on Solaris 10

Damien

Last edited by rbatte1; 01-26-2015 at 08:18 AM.. Reason: Added CODE tags
 

7 More Discussions You Might Find Interesting

1. Programming

ncurses -> the best way to use menus

hello there, i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the... (2 Replies)
Discussion started by: crashnburn
2 Replies

2. UNIX for Dummies Questions & Answers

Copying file from Unix workspace to Windows Network

Hi All, I am new for Unix, and facing one problem I wanted to copy some of files from my Unix workarea to Window network drive. I am not able to use copy or move command for this, as this only works within workarea. Please let me know, how it can be done. (2 Replies)
Discussion started by: ashwanis
2 Replies

3. HP-UX

printer in the workspace

Experts, How to configure to add the printer icon in the workspace. I compared with C3700 and C8000 machine the C3700 have it but in C8000 didnt appeared. they are both running hpux 11.11. apprciate your inputs. Thanks (0 Replies)
Discussion started by: eykyn17
0 Replies

4. UNIX for Dummies Questions & Answers

Creating menus in script file

I'm very new to Unix and know the simplest of its commands. I am trying to write a script file that has a menu with the following options showing: 1) Display all files in a user's home directory. 2) Welcome yourself to the program 3) Display System Information 4) Exit to Windows I am able... (6 Replies)
Discussion started by: sinjin
6 Replies

5. UNIX for Dummies Questions & Answers

Script file menus and coding

I am very new to Unix and don't know much about it. I've been trying to create a menu and what I don't understand is how to execute a command once a user makes a selection. I have the menu set up. In fact, the following is the code that I have thus far: #! /bin/csh # This is the UNIX menu... (0 Replies)
Discussion started by: sinjin
0 Replies

6. UNIX for Dummies Questions & Answers

opening programs in a different workspace

Hello, I have been searching for a way to spawn new processes in a different workspace with no luck. Does anyone know how to do this at the command prompt. I wish to do something like this. >vi a.txt & | workspace 2 is there any way to do this? (3 Replies)
Discussion started by: ineedhelp#1
3 Replies

7. Solaris

Solaris dtwmrc help

Hi everyone... At work, on our Solaris OS, we have a custom sys.dtwmrc file that controls a custom right-click menu that launches a Java program. I need to edit the dtwmrc file to launch the Java program only if the program is not already running. If the program is already running, I need the... (12 Replies)
Discussion started by: bitnix
12 Replies
Locale::Codes::LangFam(3)				User Contributed Perl Documentation				 Locale::Codes::LangFam(3)

NAME
Locale::Codes::LangFam - standard codes for language extension identification SYNOPSIS
use Locale::Codes::LangFam; $lext = code2langfam('apa'); # $lext gets 'Apache languages' $code = langfam2code('Apache languages'); # $code gets 'apa' @codes = all_langfam_codes(); @names = all_langfam_names(); DESCRIPTION
The "Locale::Codes::LangFam" module provides access to standard codes used for identifying language families, such as those as defined in ISO 639-5. Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default ISO 639-5 language family codes will be used. SUPPORTED CODE SETS
There are several different code sets you can use for identifying language families. A code set may be specified using either a name, or a constant that is automatically exported by this module. For example, the two are equivalent: $lext = code2langfam('apa','alpha'); $lext = code2langfam('apa',LOCALE_LANGFAM_ALPHA); The codesets currently supported are: alpha This is the set of three-letter (lowercase) codes from ISO 639-5 such as 'apa' for Apache languages. This is the default code set. ROUTINES
code2langfam ( CODE [,CODESET] ) langfam2code ( NAME [,CODESET] ) langfam_code2code ( CODE ,CODESET ,CODESET2 ) all_langfam_codes ( [CODESET] ) all_langfam_names ( [CODESET] ) Locale::Codes::LangFam::rename_langfam ( CODE ,NEW_NAME [,CODESET] ) Locale::Codes::LangFam::add_langfam ( CODE ,NAME [,CODESET] ) Locale::Codes::LangFam::delete_langfam ( CODE [,CODESET] ) Locale::Codes::LangFam::add_langfam_alias ( NAME ,NEW_NAME ) Locale::Codes::LangFam::delete_langfam_alias ( NAME ) Locale::Codes::LangFam::rename_langfam_code ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangFam::add_langfam_code_alias ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangFam::delete_langfam_code_alias ( CODE [,CODESET] ) These routines are all documented in the Locale::Codes::API man page. SEE ALSO
Locale::Codes The Locale-Codes distribution. Locale::Codes::API The list of functions supported by this module. http://www.loc.gov/standards/iso639-5/id.php ISO 639-5 . AUTHOR
See Locale::Codes for full author history. Currently maintained by Sullivan Beck (sbeck@cpan.org). COPYRIGHT
Copyright (c) 2011-2013 Sullivan Beck This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-02-27 Locale::Codes::LangFam(3)
All times are GMT -4. The time now is 04:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy