Sponsored Content
Top Forums Shell Programming and Scripting setting and displaying variables Post 302507284 by methyl on Wednesday 23rd of March 2011 11:29:28 AM
Old 03-23-2011
Assuming this is unix.
The convention is to put the message in the file /etc/motd (Message of the Day).
Check your /etc/profile file because most of the manufacturer supplied versions of /etc/profile look for the Message of the Day file. Don't forget to undo the change when you have finished.

Change the root prompt at your own risk. Remember that whoever logs in as root may not be using the same type of terminal as you!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setting environment variables ???

Hello, I want to set some environment variables with this script: ip=$@ echo Remote Computer: $ip PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0" export PERLDB_OPTS PERL5LIB=/opt/komodo export PERL5LIB echo PERLDB_OPTS: $PERLDB_OPTS echo PERL5LIB: $PERL5LIB But it... (5 Replies)
Discussion started by: Gargamel
5 Replies

2. AIX

Setting Variables not working

Hi all, I am trying to set up some variables in a shell script. The variables contain values of various paths needed to run a java module. The problem is the variables dont seem to be setting at all. here is what i am trying to do : JAR_HOME=/home/was5/bdcms/scheduledjobs/lib export... (1 Reply)
Discussion started by: rpandey
1 Replies

3. UNIX for Dummies Questions & Answers

Setting numbered variables

Normally I would post in the shell scripting area, but this is so basic I thought I'd best put it in the dummy area! I want to set a series of numbered variables. I have a loop which increments a variable called $i with each loop. I want to name variables with this number e.g. var1, var2, var3... (1 Reply)
Discussion started by: michaeltravisuk
1 Replies

4. UNIX for Advanced & Expert Users

setting some variables

i have a file .NAMEexport MY_NAME=JOE when i do this at the command prompt #. .NAME $echo MY_NAME $JOEi created a script called Run.sh . .NAME At the command prompt i did #sh Run.sh #echo $MY_NAMEit returns nothing. What have i missed out? (7 Replies)
Discussion started by: new2ss
7 Replies

5. UNIX for Dummies Questions & Answers

Setting up variables

Hi all, I have a shell script that sets up the environment for an application running on UNIX - ksh. This script is run using: . ./script_name XX where XX is a parameter. I want to run it from another shell script but when I do it I don't get the envornment variables set up and the prompt... (3 Replies)
Discussion started by: solar_ext
3 Replies

6. UNIX for Dummies Questions & Answers

setting enviroment variables help

Hello everyone, I am currently trying to program in java in unix platform for the first time, so far it is OK as long as I use class libraries which come with java distribution. Unfortunately when I try to use external libraries I have to use -classpath option which I rather not doing all the... (1 Reply)
Discussion started by: run123
1 Replies

7. UNIX for Dummies Questions & Answers

Setting up environment variables

Hi all, This is my first post here. I need to set up a few environment variables with a shell script. Some are hard-coded, but some should come from other commands or as input from the user. How do I do that? For example, I need to export a variable as such: export DISPLAY=127.0.0.1:8.0 ... (2 Replies)
Discussion started by: exchequer598
2 Replies

8. UNIX for Dummies Questions & Answers

Trouble Setting Up Sun Ultra 10 - Displaying Garbage

Hello there, I am new to this forum as well as to the UNIX world. Recently graduated with a degree in Computing and just started learning UNIX & bought 3 Sun Ultra 10 Servers. I was trying to set the Servers up so I can use them; the Servers don't have a VGA card. My laptop, which I would be... (6 Replies)
Discussion started by: frhan2u
6 Replies

9. UNIX for Beginners Questions & Answers

Displaying multiple variables in for loop

Hi! I've run into a problem where my variables are displayed in the wrong order. Basically I'm supposed to use a file that has information like this username:firstname:lastname:etc:etc. What I'm interested in doing is reformating it into a something more like this: username lastname,... (2 Replies)
Discussion started by: reindeermountai
2 Replies
PLYMOUTH(1)                                                        User Commands                                                       PLYMOUTH(1)

NAME
plymouth - Send commands to plymouthd SYNOPSIS
plymouth [OPTION...] plymouth COMMAND [OPTION...] DESCRIPTION
The plymouth sends commands to a running plymouthd. This is used during the boot process to control the display of the graphical boot splash. OPTIONS
The following options are understood. These options are supported for compatibility with the old rhgb-client interface, and have been replaced by the commands that are described in the next section. --help Show summary of options. --debug Enable verbose debug logging. --get-splash-plugin-path Get directory where splash plugins are installed. --newroot=[STRING] Tell plymouthd that the new root filesystem is mounted. --quit Tell plymouthd to quit. --ping Check if plymouthd is running. --has-active-vt Check if plymouthd has an active vt. --sysinit Tell plymouthd root filesystem is mounted read-write. --show-splash Show the splash screen. --hide-splash Hide the splash screen. --ask-for-password Ask the user for a password. --ignore-keystroke=[STRING] Remove sensitivity to a keystroke. --update=[STRING] Tell plymouthd an update about boot progress. --details Tell plymouthd there were errors during boot. --wait Wait for plymouthd to quit. COMMANDS
The following commands are understood: change-mode OPTION Change the operation mode. --boot-up Start the system up --shutdown Shutting the system up --updates Applying updates system-update OPTION Tell plymouthd about boot progress. --progress=INTEGER The percentage progress of the updates update OPTION Tell plymouthd about boot status changes. --status=STRING Tell plymouthd the current boot status update-root-fs OPTION Tell plymouthd about root filesystem changes. --new-root-dir=STRING Root filesystem is about to change --read-write Root filesystem is no longer read-only show-splash Tell plymouthd to show splash screen. hide-splash Tell plymouthd to hide splash screen. ask-for-password OPTION Ask the user for a password. --command=STRING Command to send password to via standard input --prompt=STRING Message to display when asking for password --number-of-tries=INTEGER Number of times to ask before giving up (requires --command) --dont-pause-progress Don't pause boot progress bar while asking ask-question Ask the user a question. --command=STRING Command to send the answer to via standard input --prompt=STRING Message to display when asking the question --dont-pause-progress Don't pause boot progress bar while asking display-message OPTION Display a message. --text=STRING The message text hide-message OPTION Hide a message. --text=STRING The message text watch-keystroke OPTION Become sensitive to a keystroke. --command=STRING Command to send keystroke to via standard input --keys=STRING Keys to become sensitive to ignore-keystroke OPTION Remove sensitivity to a keystroke. --keys=STRING Keys to remove sensitivitiy from pause-progress Pause boot progress bar. unpause-progress Unpause boot progress bar. report-error Tell plymouthd there were errors during boot. deactivate Tell plymouthd to deactivate. reactivate Tell plymouthd to reactivate. quit OPTION Tell plymouthd to quit. --retain-splash Don't explicitly hide boot splash on exit SEE ALSO
grub(8), plymouth(8), plymouthd(8), http://www.freedesktop.org/wiki/Software/Plymouth plymouth PLYMOUTH(1)
All times are GMT -4. The time now is 06:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy