running start up commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers running start up commands
# 1  
Old 12-02-2002
running start up commands

Hi all
How can I setup my shell so that I run a set of commmands or a script every time I login. I am using kshell. I tried putting a line in ./.bash_profile (does not work)
Ex.: I want to use vi as the commandline editor so, I want to run the command: set -o vi
# 2  
Old 12-02-2002
you need to create a .profile file in your home
directory and put the following in your .profile
file in other to set vi as your edit

EDITOR=vi ; export EDITOR
# 3  
Old 12-02-2002
Adding a line in ./.profile worked for running the command set -o vi worked for me!!

Thanx!!
# 4  
Old 12-03-2002
EDITOR=vi ; export EDITOR and set -o vi
both do the same thing
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Red Hat

How do I invoke second copy of apache when running service httpd start?

Hi all I'm using the following for my os # cat /etc/redhat-release CentOS release 6.4 (Final) when I execute the following # ls -lrth /etc/init.d/httpd -rwxr-xr-x. 1 root root 3.3K Feb 22 19:20 /etc/init.d/httpd # /etc/init.d/httpd start Starting httpd: httpd: Syntax error... (1 Reply)
Discussion started by: jediwannabe
1 Replies

3. Shell Programming and Scripting

AWK - Issues with script running at start of month.

I have a script that runs on an AIX 5.3.10.0. It runs perfectly on days that are double digit numbers, but from the 1st to the 9th of the month it runs but does not report anything. The command in the script is as follows: awk -v d=$(date '+%b%d') '/user:warn/ && /has shutdown/ && ($1$2 ==... (2 Replies)
Discussion started by: jimbojames
2 Replies

4. OS X (Apple)

Terminal autorunning commands at start

How do I make terminal autorun commands at start up? For example, I have several windows of terminal, I want one to automatically run 'top' and a couple others autorun 'man' pages. Is there any way I can do this? (1 Reply)
Discussion started by: randomtypos
1 Replies

5. UNIX for Dummies Questions & Answers

How to start application and keep script running

What I'm looking for is best explained with a little example. #!/bin/bash gedit echo "I need this message to appear while gedit is still running, but it appears only then when I close gedit." Of course most of the times you want the script to wait, but in this case I want to start a new... (5 Replies)
Discussion started by: MrZehl
5 Replies

6. UNIX for Dummies Questions & Answers

How to get the start time for a JAVA Main running process

I have a script that executes a MAIN JAVA FILE It does check if the process is already running or not by using this code w_pid=`ps -efx | grep -v grep | grep "FileTransactionArchiveMain dvlp"|awk '{print $11}'` if then #echo 'Another instance is running.' exit fi Now I... (1 Reply)
Discussion started by: akabir77
1 Replies

7. UNIX for Dummies Questions & Answers

how to get start time of a running process

I am trying to see if a process is running what was its start time. here is the code that I am using if then echo 'Gateway output processing started.' else VAR=$(ps -ef | grep batch_output_x ) ... fi now the problem i see is when the process is running i get two... (3 Replies)
Discussion started by: akabir77
3 Replies

8. Shell Programming and Scripting

For loop and running 2 commands at once?

HI. I am trying to run 2 commands, using the "for x in a b c d" loop but i am having a hard time coding it... Here is what i have so far: for SERVER in SERVERA SERVERB SERVERC SERVERD SERVERE do ############################################################################### #... (5 Replies)
Discussion started by: Stephan
5 Replies

9. Programming

Running UNIX Commands from C

Hi, -How can I get number of files, cpu usage (percentage), memory usage, disk usage, ...etc, using C program ... I can use unix command ( system(command) )but I want the value to be returned back to my C program to use it in my code? How can I do that? Thanks in advance ... (2 Replies)
Discussion started by: zainab
2 Replies

10. UNIX for Dummies Questions & Answers

How do I Know if a report manager is running after I start it ?

I hope somebody can help with this one. If I run a command like this /rd/bin/rptmgr to start a report manager up. How could I view this to see if it is running? I can view it thru our bussiness app in GUI But I was wondering if I could check this when I am at the console in UNIX I am... (2 Replies)
Discussion started by: rocker40
2 Replies
Login or Register to Ask a Question