How to custom application name in `ps -ef`?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to custom application name in `ps -ef`?
# 1  
Old 11-27-2002
How to custom application name in `ps -ef`?

A program named /usr/bin/aa.sh, two parameters: 11, 22. after start it, the row in `ps -ef` is almost like the following:
root 12198 10278 0.0 Nov 25 pts/3 0:00.23 /usr/bin/aa.sh 11 22

but I want to change "/usr/bin/aa.sh 11 22" to one rule string, such as: "AA_11_22", how to do it?
# 2  
Old 11-27-2002
The shell script will need to copy itself calling the new copy "AA_11_22". Then it will need to exec the newly created script.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cluster a custom application

Hi guys. I have a custom application which is written by java. I want to know is it possible to cluster this application by pacemaker. For example copy this application in two different nodes and setup a cluster by pacemaker. In one time only one application work and when primary node goes... (8 Replies)
Discussion started by: mhs
8 Replies

2. Shell Programming and Scripting

Custom Report

Hi All, Am getting the raw report from the source and need to prepare the custom report as per the requirement. Requirement keep getting change according to the need. Raw data is as below /* ----------------- test_job_hu ----------------- */ insert_job: test_job_hu job_type: CMD... (4 Replies)
Discussion started by: pradeep84in
4 Replies

3. UNIX for Dummies Questions & Answers

Custom command and email

Hi All, I am having a program called emailstat which will send email based on the message we pass emailstat -email <email> now I am trying to run the vmstat and and pass the output to emailstat source in -message part. Is this possible ? Thanks Arun (8 Replies)
Discussion started by: arunkumar_mca
8 Replies

4. Shell Programming and Scripting

Custom Shell

I have a jump off server, which grants SSH access to a few other servers. I would like to create a custom shell which can be assigned to specific user accounts which runs a menu script upon login, where they can select which server they want to jump too, however should they hit ctrl-c or any... (1 Reply)
Discussion started by: JayC89
1 Replies

5. Shell Programming and Scripting

custom command

hi I am trying to make my own commands in my linux.I thought a command for changing directories will be easy. I made a simple file amd made the entries #!/bin/bash cd /opt/mydir I then made the file executable and then moved it to /usr/bin. But when i type the script name nothing... (2 Replies)
Discussion started by: born
2 Replies

6. Shell Programming and Scripting

doing own custom parameters

I have an rsync command that I want to create a variable where user can change to customize the parameters. complete rsync command to run: $RSYNC -e 'ssh -ax -o ClearAllForwardings=yes' --log-file=$LOG_FILE --delete -avzcr -u --update $SRC_DIR $USER@$TRG_SRV:$TRG_DIR >> $LOG_FILE What I... (4 Replies)
Discussion started by: abubin
4 Replies

7. UNIX for Dummies Questions & Answers

Changing ip in a custom way

Hi. I hope someone can help me. I have e very special question. I have a Lunix server and I have installed Webmin on it. This way, I can create a login for an other user and give him restricted access to some custom commands I set up. One of the commands i would like to setup, is for him to... (9 Replies)
Discussion started by: Wonderke
9 Replies

8. Shell Programming and Scripting

Custom PS command

(0 Replies)
Discussion started by: goldfish
0 Replies

9. UNIX for Advanced & Expert Users

Custom name for java process

The Linux ps (report process status) utility is not very helpful when it comes to Java processes : The java executable path is usually so long, that the ps listing does not show any of its paramaters even in long mode. == 15379 ? S 0:01 /usr/local/java/ibm-jdk1.3/jre/bin/exe/java -Djava.se == ... (1 Reply)
Discussion started by: vinbitian
1 Replies

10. Solaris

Custom pam module

Does anyone know how to create a custom pam module for modifying the login authentication procedure? (1 Reply)
Discussion started by: mhm4
1 Replies
Login or Register to Ask a Question