05-30-2010
Quote:
Originally Posted by
proactiveaditya
How to restrict running one instance of scp at any time?
is it
per process
per host
per userid
per application
per time-slot unit?
You need to provide more details.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm on Freebsd 4.5 stable, havin question of that kind:
I need to restrict programs running, like BitchX for example, which can be dowlnoaded by logged on user, and i cant set permissions to all users to prevent that program from executing. And ipfw doesnt help me because of i need to allow that... (1 Reply)
Discussion started by: hachik
1 Replies
2. Shell Programming and Scripting
Hi,
I am writing a shell script to invoke a C++ program. Before I start the C++ program (oi7loadbalancer), I am checking if the process is already running. I start the process only if it is not already running. I have the following check in my script.
proccount=`ps -f -u $USER_NAME | grep... (8 Replies)
Discussion started by: sim
8 Replies
3. UNIX for Advanced & Expert Users
Hi,
I am getting core file in local machine after trasfer files to other machine by using scp (secure copy) of SSH in UNIX.
Could any one please tell me how to restrict core file generatation by using scp command. (4 Replies)
Discussion started by: nrsekhar
4 Replies
4. Shell Programming and Scripting
Hello.
I have a status command in AIX box, which provides output as below:
$ status
You are running the application on pegasus2
----Program Name------|--Avail / Total---------|
MQ | 1/2 |
ORACLE | 10/10 |
TMADMIN ... (3 Replies)
Discussion started by: panchpan
3 Replies
5. Shell Programming and Scripting
is it possible that we can restrict the root user if he runs some commands?? e.g i want if root runs command 'rm etc/passwd', he shoudn't be able to run command and throws error :confused: (3 Replies)
Discussion started by: sheelsadan
3 Replies
6. Shell Programming and Scripting
I have run 10 instances of the process eg, process name is BG
nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 1 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>a.txt &
nohup /WP01IRB1_irbapp/IRBWPROD/RB/bin/BG -c 2 -t 23 -a '-caTop TESTBILLCYCLE='5FEB13_81PT19NPT''>b.txt &
nohup... (3 Replies)
Discussion started by: ankitknit
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
How can i restrict the execution of same script if it is running already in nohup
Thanks (1 Reply)
Discussion started by: ranabhavish
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
I want to write one program in C in Unix OS which will check the running status of a process time to time. If the process is stopped somehow by any means, it will ensure that the process is restarted and only one copy of the process image should run in memory at any point of time for the user.... (2 Replies)
Discussion started by: sanzee007
2 Replies
9. AIX
Hi Everyone,
I want to know is it possible, restrict user login to AIX by IP and user name?
e.g.
user alice can login to AIX (via ssh or telnet) from 192.168.1.100
user alice can not login to AIX (via ssh or telnet) from 172.16.1.100
user bob can not login to AIX (via ssh or telnet)... (6 Replies)
Discussion started by: nnnnnnine
6 Replies
10. Shell Programming and Scripting
so i have a script that takes a while to complete and its cpu intensive. this script is being used by several users. i want to make sure only 1 user can run this script at any given time.
i originally thought of running a while loop to egrep the process table of the PID ($$) of the process,... (7 Replies)
Discussion started by: SkySmart
7 Replies
LEARN ABOUT REDHAT
lamgrow
LAMGROW(1) LAM COMMANDS LAMGROW(1)
NAME
lamgrow - Extend a LAM multicomputer.
SYNTAX
lamgrow [-hv] [-c <bhost>] [-u <userid>] [<node>] <hostname>
OPTIONS
-h Print useful information on this command.
-c <bhost> Update this boot schema.
-v Be verbose.
<hostname> Extend LAM with this host.
<node> Assign this ID to the new node.
-u <userid> Use this userid to access the new host.
DESCRIPTION
An existing LAM session, initiated by lamboot(1), can be enlarged to include more nodes with lamgrow. One new node is added for each invo-
cation. At a minimum, the host name that will run the new node is given on the command line. If a different userid is required to access
the host, it is specified with the -u option.
It can be useful to update the original boot schema used by lamboot(1) with the new node added by lamgrow. The -c option specifies a boot
schema filename and causes lamgrow to append the host name. The updated boot schema is ready to be used by wipe(1) to terminate the ex-
tended LAM session. New nodes added by lamgrow will not be cleaned up by wipe(1) if the original boot schema is used. They can be termi-
nated individually, as always, with tkill(1).
The new node can be assigned any unused, non-negative identifier. If no identifier is specified, the highest node identifier in the cur-
rent LAM session plus one is used. Note that lamboot(1) always assigns node identifiers consecutively from 0.
lamgrow can be run from any node. As a LAM command program it must be run from a node in the existing LAM session. It cannot be run from
the intended new host. Two invocations of lamgrow should not run concurrently and the command attempts to detect this situation. There is
no protection against specifying the name of host that is already part of the user's existing LAM session. This is not the proper use of
lamgrow.
Resource managers will be the most common user of lamgrow. When hosts become idle and a user has expressed a desire to the manager that
extra cycles should be exploited, the manager could invoke lamgrow and then launch the specified application process(es) on the new node.
EXAMPLES
lamgrow -v newhost
Start LAM on newhost and add it to the existing LAM session. Choose the next available node identifier and report about important
steps as they are done.
lamgrow n30 newhost
Start LAM on newhost with node ID 30 and add it to the existing LAM session. Operate silently.
FILES
$LAMHOME/etc/lam-conf.lam default configuration file for LAM nodes
SEE ALSO
lamboot(1), hboot(1), wipe(1), tkill(1), bhost(5), conf(5)
LAM 6.5.8 November, 2002 LAMGROW(1)