Sponsored Content
Full Discussion: running start up commands
Top Forums UNIX for Dummies Questions & Answers running start up commands Post 32599 by hassan2 on Monday 2nd of December 2002 08:24:48 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
INSTALL-MH(8)                                                        [nmh-1.5]                                                       INSTALL-MH(8)

NAME
install-mh - initialize the nmh environment SYNOPSIS
/usr/lib/mh/install-mh [-auto] [-check] [-version] [-help] DESCRIPTION
Install-mh is the nmh program to create the initial setup for a first-time nmh user. Install-mh lives in two places for historical rea- sons. The -auto option does things as automatically as possible and makes install-mh less chatty. The user is asked for the name of the directory that will be designated as the user's nmh directory. If this directory does not exist, the user is asked if it should be created. Normally, this directory should be under the user's home directory, and has the default name of ``Mail''. Install-mh writes an initial .mh_profile for the user. As with all nmh commands, install-mh first checks for the existence of the $MH environment variable since that gives the profile path if set. If it isn't set, the $HOME environment variable is consulted to determine the user's home directory. If $HOME is not set, then the /etc/passwd file is consulted. When creating the users initial .mh_profile, install-mh will check for the existence of a global profile /etc/nmh/mh.profile. If found, this will be used to initialize the new .mh_profile. The -check option can be used to check whether or not nmh has been installed. This can be used by other programs to determine whether or not nmh has been installed without their having to know the internals of nmh. FILES
$HOME/.mh_profile The user profile /etc/nmh/mh.profile Used to initialize user profile PROFILE COMPONENTS
Path: To set the user's nmh directory CONTEXT
With -auto, the current folder is changed to "inbox". MH.6.8 11 June 2012 INSTALL-MH(8)
All times are GMT -4. The time now is 10:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy