Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Bashrc File - Conditional Command Execution? Post 302934773 by RudiC on Tuesday 10th of February 2015 01:16:21 PM
Old 02-10-2015
This may work if your host has a fixed IP address assigned to it. With DHCP this may change over time. Anyhow, having several users log into the same account is usually deprecated for its inherent insecurity.
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Conditional execution and parallel jobs

how can i process jobs parallel with conditions below. Script1.ksh Script2.ksh Script3.ksh Script4.ksh Script5.ksh Script6.ksh Script7.ksh Script8.ksh Script9.ksh Script10.ksh After successful completion of Script1.ksh I need to run Script7.ksh. After successful... (4 Replies)
Discussion started by: ford2020
4 Replies

2. Shell Programming and Scripting

unix script for conditional execution

Below is my shell script. I am trying to execute two different BTEQ scripts depending on the day of the week. So on a saturday I will execute a certain BTEQ script and on other weekdays I will run the other script. #!/bin/ksh dt=`date +"%a"` if then bteq > final_output <<- EOF .run... (3 Replies)
Discussion started by: Mihirjani
3 Replies

3. Shell Programming and Scripting

Help on shell script conditional execution when CPU Idle > 60%

I need a shell script that will monitor a few conditions and not execute until the these conditions are met. The problem I'm having is that I can not perform a database snapshot (backup) of a sybaseIQ database unless the CPU Status Idle % is above 60% or the snapshot (backup) fails. If... (2 Replies)
Discussion started by: pancona99
2 Replies

4. Shell Programming and Scripting

Conditional execution

Hi All, I want to echo a message in case a system is reachable by ping or echo a different message in case it's not reachable. Sample code i wrote is ping localhost -n 2 | grep 'ttl' > ping_op; ls ping_op > /dev/null && drReachable=Alive; echo -e `date`: \\t "DR server is reachable" >>... (5 Replies)
Discussion started by: Mr. Zer0
5 Replies

5. UNIX for Dummies Questions & Answers

Conditional execution of statements

Hi , I have a script which has multiple awk and sed commands like below. First one :- find /root/src/ -name "*csv" -size 0 -exec rm {} \; Second one: - ls *SRE*.txt > SRT_TRAN.dat rm *asr*.txt Third one :- find /root/src/ -name '*.csv' | while read FILENAME ; do awk... (2 Replies)
Discussion started by: shruthidwh
2 Replies

6. Shell Programming and Scripting

search and conditional execution

Hi, I have a list of files with different filenames like nam0001.txt,pan0001.txt etc coming in /data/inbox from various places. I needed a shell script which would:- 1)searches for a word from the filenames (coming in inbox directory) provided in input parameter. 2)if found, put in... (2 Replies)
Discussion started by: Saiesh
2 Replies

7. Shell Programming and Scripting

Conditional grep command to search entire file

Let me give you a complete example what I am trying to achieve. 1. Below is the log file structure where I need 2,5 and 14th column of the logs after grepping through the linkId=1ddoic. Log file structure:- abc.com 20120829001415 127.0.0.1 app none11111 sas 0 0 N clk Mozilla/5.0... (3 Replies)
Discussion started by: kmajumder
3 Replies

8. Shell Programming and Scripting

Conditional Execution of a Script.

I have a unix shell script Test.sh more Test.sh echo "Calling dbquery1.sh...." ./dbquery1.sh echo "Calling dbquery2.sh...." ./dbquery2.sh more dbquery1.sh sqlplus -s user1/password1@DB_SID @/tmp/storedprocedures/Hello.rcp I run Test.sh However, I do not want dbquery2.sh to be... (3 Replies)
Discussion started by: mohtashims
3 Replies

9. Shell Programming and Scripting

Ed command execution in script file

for file in File_Name* do ed -s $file << 'EOF' 0a $Header_Record . $a . w EOF done The above command is executing in the unix box but is not... (2 Replies)
Discussion started by: Kanch
2 Replies

10. Shell Programming and Scripting

Conditional execution

Here's an interesting (to me, anyway) little puzzle. Background: I have a process that restores a number of large(ish) files from tape backup. As an individual file is being written, it is owned by root, then the ownership is changed when that file is complete. Since this process can take... (3 Replies)
Discussion started by: edstevens
3 Replies
namepool(4)						     Kernel Interfaces Manual						       namepool(4)

NAME
namepool - DHCP server database DESCRIPTION
The namepool database provides joind with names that are available for dynamic assignment to clients of the DHCP protocol. For each DHCP server and domain name (NIS or DNS), the database contains a collection of names available for allocation to DHCP clients within those domains. One name plays a distinguished role - it is used as a prefix when the pool has been exhausted. Names are generated from the pre- fix by appending a number, 1,2.., and a trailing 'd'. The namepool file is read whenever joind starts. Names within the database must not be allocated to hosts which are not DHCP clients, and if the administration of a domain is shared between several DHCP servers, the name- pools that each has must be disjoint. Names may be added and removed from the namepool file. If a name is removed from the file it remains bound to the client to which it was allocated; if no such binding is in effect the name is excised from the server's pool the next time the server starts. Once a name is dynamically bound to a host it will never be reused even if that host subsequently acquires a new name, but there is no need to remove it from namepool. FORMAT Blank lines and lines beginning with a number sign (#) are ignored. A new entry must begin in column one and has one of the following for- mats: domain server domain server name_prefix The domain variable is the domain in which the names which follow are assigned. The server variable is the name or IP address of the server in charge of allocating these names to clients. The prefix variable is the prefix that will be used when the pool is exhausted. Succeeding lines contain one or more names for domains that are to be allocated by the server. Each of these succeeding lines must begin with at least one white space character. FILES
/etc/join/namepool RELATED INFORMATION
joind(8), join.ipaddresses(4) delim off namepool(4)
All times are GMT -4. The time now is 01:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy