10-24-2008
Thx...
Does this substitution pre-vail multiple sessions?....or
when I log out of the current session, the login shell will be back to KSH again?..which means I am dealing with a single session ONLY with out effecting other developers !!!
-Anduzzi
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Buddy,
Can any one help me to overcome from the below problem?
#/usr/bin/ksh
typeset -Z dd
dd=1
echo $dd
===========
out put for the above is 01
same script I'm migrating to bash but typeset -Z option is not found in bash, Pls get me the equivalent option in BASH
Thanks in... (1 Reply)
Discussion started by: krishna
1 Replies
2. Shell Programming and Scripting
hey all!
i'm looking how to render verbose python scripts.
what i'm looking for would be an equivalent to a "bash -xf" in bash script headers..
Any help? (2 Replies)
Discussion started by: penguin-friend
2 Replies
3. UNIX for Dummies Questions & Answers
is there a way to choose the complement from the output from the sequense in "ksh -o vi"
root# ls
testa testb
root# cat tes
1) testa
2) testb
root# cat tes <-- what to do now?
this output looks like a select function, otherwise the numbers wouldn't make sense, is there a chance to use... (2 Replies)
Discussion started by: pressy
2 Replies
4. Shell Programming and Scripting
Hi,
I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh).
The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
Discussion started by: estienne
2 Replies
5. UNIX for Dummies Questions & Answers
I'm a user on a fairly locked down sys V server. By default, I have ksh set as my default shell. I added to my .profile:
bash -o vi
so when I login, it goes into bash so I can take advantage of tab completion and use the up key to bring up previous commands. However, whenever I want to exit, I... (2 Replies)
Discussion started by: mrwatkin
2 Replies
6. Shell Programming and Scripting
I have a script in KSH and now need to incorporate this into another script which is in BASH. OUr script contains code like below in good number of places.
Eg: echo “A B C” | read VAR1 VAR2 VAR3
This works only in ksh and not in BASH. Please let me know
1. Which is the equivalent... (3 Replies)
Discussion started by: cvsanthosh
3 Replies
7. Shell Programming and Scripting
Hi,
I came across a post wherein you can use "set -r"(on bash) to activate restricted mode ( wherein you cant run some commands such as cd etc).
Can anyone guide if we have anything similar in ksh ?
Thanks (2 Replies)
Discussion started by: Shivdatta
2 Replies
8. Shell Programming and Scripting
Hi,
I put the necessary tftp commands into a batch file and I can run tftp by
$ tftp < tftpbatchscript
in bash command line and then successfully exit.
Now, I want to put a line which does the same thing above. However, when I put this line into a bash script, the lines below this line... (1 Reply)
Discussion started by: yildiz.a
1 Replies
9. UNIX for Dummies Questions & Answers
when I created user and use su - username then its prompt come in bash mode
# su - uusr
-bash-4.1$
What is this bash mode .
this also show
-bash-4.1$ touch filename
touch: cannot touch `filename': Permission denied
Please use CODE tags (not ICODE tags) when displaying... (2 Replies)
Discussion started by: kaushik02018
2 Replies
10. Fedora
I'm sure this is a really dumb question, but if I use a command in Fedora 23 emergency mode, and that command doesn't exist, I don't come back to the command prompt, but enter what appears to be a text mode. How do I get back to the command line? (2 Replies)
Discussion started by: bangorme
2 Replies
LEARN ABOUT CENTOS
gnome-session
GNOME-SESSION(1) General Commands Manual GNOME-SESSION(1)
NAME
gnome-session - Start the GNOME desktop environment
SYNOPSIS
gnome-session [-a|--autostart=DIR] [--session=SESSION] [--failsafe|-f] [--debug] [--whale]
DESCRIPTION
The gnome-session program starts up the GNOME desktop environment. This command is typically executed by your login manager (either gdm,
xdm, or from your X startup scripts). It will load either your saved session, or it will provide a default session for the user as defined
by the system administrator (or the default GNOME installation on your system).
The default session is defined in gnome.session, a .desktop-like file that is looked for in $XDG_CONFIG_HOME/gnome-session/sessions,
$XDG_CONFIG_DIRS/gnome-session/sessions and $XDG_DATA_DIRS/gnome-session/sessions.
When saving a session, gnome-session saves the currently running applications in the $XDG_CONFIG_HOME/gnome-session/saved-session direc-
tory.
gnome-session is an X11R6 session manager. It can manage GNOME applications as well as any X11R6 SM compliant application.
OPTIONS
The following options are supported:
--autostart=DIR
Start all applications defined in DIR, instead of starting the applications defined in gnome.session, or via the --session option.
Multiple --autostart options can be passed.
--session=SESSION
Use the applications defined in SESSION.session. If not specified, gnome.session will be used.
--failsafe
Run in fail-safe mode. User-specified applications will not be started.
--debug
Enable debugging code.
--whale
Show the fail whale in a dialog for debugging it.
SESSION DEFINITION
Sessions are defined in .session files, that are using a .desktop-like format, with the following keys in the GNOME Session group:
Name Name of the session. This can be localized.
RequiredComponents
List of component identifiers (desktop files) that are required by the session. The required components will always run in the ses-
sion.
Here is an example of a session definition:
[GNOME Session]
Name=GNOME
RequiredComponents=gnome-shell;gnome-settings-daemon;
The .session files are looked for in $XDG_CONFIG_HOME/gnome-session/sessions, $XDG_CONFIG_DIRS/gnome-session/sessions and
$XDG_DATA_DIRS/gnome-session/sessions.
ENVIRONMENT
gnome-session sets several environment variables for the use of its child processes:
SESSION_MANAGER
This variable is used by session-manager aware clients to contact gnome-session.
DISPLAY
This variable is set to the X display being used by gnome-session. Note that if the --display option is used this might be different
from the setting of the environment variable when gnome-session is invoked.
FILES
$XDG_CONFIG_HOME/config/autostart $XDG_CONFIG_DIRS/config/autostart /usr/share/gnome/autostart
The applications defined in those directories will be started on login. gnome-session-properties(1) can be used to easily configure
them.
$XDG_CONFIG_HOME/gnome-session/sessions $XDG_CONFIG_DIRS/gnome-session/sessions $XDG_DATA_DIRS/gnome-session/sessions
These directories contain the .session files that can be used with the --session option.
$XDG_CONFIG_HOME/gnome-session/saved-session
This directory contains the list of applications of the saved session.
BUGS
If you find bugs in the gnome-session program, please report these on https://bugzilla.gnome.org.
SEE ALSO
gnome-session-properties(1) gnome-session-quit(1)
GNOME GNOME-SESSION(1)