Sponsored Content
Special Forums Windows & DOS: Issues & Discussions How to run UNIX alias from plink? Post 302993761 by RudiC on Tuesday 14th of March 2017 06:50:06 AM
Old 03-14-2017
An alias is usually created and persists only in an interactive session, so it is lost between sessions. If you dont wan't to define it manually every time you log in, put it into one of the login scripts (e.g. .profile) on the target host to use it as you post above.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

unix question: user supplied input for 'alias'

I have a program to scan the log files and I want to pipe the output to 'less'. I want to create an alias such that following are equivalent scanlog chunky.lst = /udd/n2man/utils/scanlog chunky.lst|less where chunky is user supplied file which can change. Is this possible as an alias or... (1 Reply)
Discussion started by: ospreyeagle
1 Replies

2. Shell Programming and Scripting

Plink connections to multiple unix servers

Hi, I have a simple windows batch file which connects to a UNIX server and runs a shell script in my home directory on the server. It works perfectly, using plink + ssh keys in the background. What I plan to do is expand this batch file to connect to multiple servers and execute one script... (2 Replies)
Discussion started by: Moxy
2 Replies

3. Shell Programming and Scripting

using alias in cygwin unix

i have a cygwin unix and i would like to use alias to save a cd command.. however i lose this alias when i close out cygwin and log back in.. is there any way to save this command so that i can use it every time i log in? i am using cygwin on windows xp. thanks. (1 Reply)
Discussion started by: npatwardhan
1 Replies

4. AIX

echo in alias for Unix C-Shell Prompt

Hi, I want to set Unix prompt in C-Shell which required the break new line using alias. Ex. hostname : username : %> Now, it will be setup in .login file with alias alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"' I'm unable to parse echo command or break which I can get %>... (1 Reply)
Discussion started by: buzzusa
1 Replies

5. Shell Programming and Scripting

echo in alias for Unix C-Shell Prompt

Hi, I want to set Unix prompt in C-Shell which required the break new line using alias. Ex. hostname : username : %> Now, it will be setup in .login file with alias alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"' I'm unable to parse echo command or break which I can get %>... (3 Replies)
Discussion started by: buzzusa
3 Replies

6. OS X (Apple)

Where should I install an alias file under UNIX bash ?

I have a file named 'aliases' which contains a list of aliases like: alias loc='locate' alias h='history' alias .='pwd' alias ..='cd ..' alias cd..='cd .. ; pwd' .............................. Where should I put this file (alias) so when Terminal launches .bash and thus a shell at... (1 Reply)
Discussion started by: shub22
1 Replies

7. UNIX for Dummies Questions & Answers

Create alias files (not alias commands)

If one: $ find -name 'some expression' -type f > newfile and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory. I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies

8. UNIX for Dummies Questions & Answers

look up Unix server alias name

Good morning everyone, does anyone know what Unix command to use to lookup a servers alias name, thanks (3 Replies)
Discussion started by: abbya
3 Replies

9. Solaris

How to set a global alias in UNIX Solaris?

Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new ksh shell window. Can you please help on this? (3 Replies)
Discussion started by: rbalaj16
3 Replies

10. Shell Programming and Scripting

Need help on Plink

Hi All, Iam a newbie to the plink and need your assistance. I have referred some posts but it doesn't helps me much. I have two steps to do. 1. I have a config file which has a list of servers,username and password. 2. I have a shell script in windows which accepts arguments and need to... (0 Replies)
Discussion started by: cskumar
0 Replies
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)
All times are GMT -4. The time now is 02:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy