12-18-2007
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Suppose there exists a file, "/home/andrew/product/test". And suppose I set $FOO to "/home/andrew/product/"? I can't seem to type "$FOO/t" and then Escape (csh) in order to autocomplete.
Is this possible in other shells? If not, then why? If so, then why can't csh do it, and how can I make... (1 Reply)
Discussion started by: acheong87
1 Replies
2. Shell Programming and Scripting
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies
3. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
4. Shell Programming and Scripting
Library path variables.
I need to know the library rnvironment variable in linux. Ie, I install zlib directory in the custom path /usr/local/mylib and give --enable-zlib in the ffmpeg install, ffmpeg should check for the zlib libraries in the path /usr/local/mylib. Currently it checks /usr/lib... (5 Replies)
Discussion started by: anilcliff
5 Replies
5. Solaris
Ok, this is the little annoying.
I can't set up $PATH variable for all non root users on Solaris 11 express.
oracle@DevelopBox01:/export/home/oracle$ cat /etc/default/login
........
# PATH sets the initial shell PATH variable
#... (6 Replies)
Discussion started by: solaris_user
6 Replies
6. Shell Programming and Scripting
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
Discussion started by: karthikgv417
6 Replies
7. Shell Programming and Scripting
Hi experts,
I have multiple file names ending with .jsp located in $SOME_DIR, $SOME_DIR/f1/,$SOME_DIR/f2/test,$SOME_DIR/f3/fa
and there are equivalent class files in $SOME_DIR/WEB-INF/classes/_pages,$SOME_DIR/WEB-INF/classes/_pages/_f1,... (0 Replies)
Discussion started by: oraclermanpt
0 Replies
8. UNIX for Advanced & Expert Users
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
10. Programming
i have make file which i try to make them generic
but it keeps to compline it missing include directory
this is the makefile :
CXX=g++
CPPFAGS= -Wall -O0 -g -std=c++14
INCLUDES = -I/home/vagrant/libuv/include -Isrc
LIBS_DIRS = -L/home/vagrant/libuv/build
LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT OPENSOLARIS
dtappsession
dtappsession(1) User Commands dtappsession(1)
NAME
dtappsession - start a new Application Manager session
SYNOPSIS
/usr/dt/bin/dtappsession [hostname]
DESCRIPTION
dtappsession is a specialized version of the Xsession shell script. It is an alternative to using the CDE remote login that allows you to
access a remote host without logging out of your current CDE session. dtappsession starts a new instance of the CDE Application Manager in
its own ToolTalkTM session. It can be used to remotely display the Application Manager back to your local display after logging in to a
remote host with the rlogin(1) command.
A new, independent instance of ttsession(1) starts a simple session management window. This window displays the title
remote_hostname: Remote Administration
where remote_hostname is the system that is being accessed. The window also displays an Exit button. Clicking Exit terminates the ToolTalk
session and all windows that are part of the session.
The Application Manager that is displayed can be used to start remote CDE actions to run in this session. Exiting the Application Manager
does not terminate the session, and it is not recommended. Clicking Exit is the recommended way to end the session. To avoid confusing the
remote CDE applications with local ones, it is recommended that a new CDE workspace be created for clients in the remote session.
The hostname is not needed when the DISPLAY environment variable is set to the local hostname on the remote host.
On a system that is configured with Trusted Extensions, dtappsession can be used for remote administration by administrative roles that
have the ability to log in to the remote host.
dtappsession does not require any privilege, and it does not need to run on a system that is configured with Trusted Extensions. When
installed in /usr/dt/bin on a Solaris system, along with the startApp.ds file, dtappsession can be used to administer the remote Solaris
system from a local system that is configured with Trusted Extensions. However, in this case, the CDE workspace that is used for remote
display must be a normal workspace, rather than a role workspace.
EXAMPLES
Example 1 Remote Login and dtappsession
After creating a new CDE workspace, type the following in a terminal window:
# rlogin remote_hostname
password: /*type the remote password*/
# dtappsession local_hostname /* on the remote host */
FILES
/usr/dt/bin/startApp.ds dt Korn shell script for session manager window
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdttsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
BUGS
X11/CDE applications that do not register with the ToolTalk session manager will not exit automatically when the session is terminated.
Such applications must be explicitly terminated.
SEE ALSO
dtfile(1), rlogin(1), ttsession(1), attributes(5)
Chapter 14, Remote Administration in Trusted Extensions (Tasks), in Solaris Trusted Extensions Administrator's Procedures
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 15 Aug 2005 dtappsession(1)