Search Results

Search: Posts Made By: cpolikowsky
901
Posted By cpolikowsky
Break output file into three files
Help! :)

I am getting an output file that looks similar to below.

EMAIL_ADDR
-----------------------------------------------------------------------------------
user@gmail.com
DATABASENAME...
4,577
Posted By cpolikowsky
RHEL 6 -- ksh or bash are available. ...
RHEL 6 -- ksh or bash are available.

---------- Post updated at 09:52 PM ---------- Previous update was at 06:40 PM ----------

---------- Post updated at 09:59 PM ---------- Previous update...
4,577
Posted By cpolikowsky
Building a dynamic UNIX menu with input files
Hi!

I am looking to build dynamic menu (named: lookup.sh) that reads a pipe delimited file for input.

for example, contents of input.txt could be:
user1|srv1
user3|srv1
user4|srv1...
47,841
Posted By cpolikowsky
If statement with multiple conditions
I have a script that runs on multiple servers. What I want to do is have the script do the following:

if $(hostname) is equal to server or server2
then
TO_DIR=go
else
TO_DIR=stop
fi...
Forum: Cybersecurity 03-31-2009
6,615
Posted By cpolikowsky
Enable SSH for root over certain network connection of a server...is it possible?
Hi - I have a SUSE Enterprise Linux Server V9 that I have an issue with. Policy says that root connectivity via ssh needs to be disabled. So, to do that, I made the following change in the...
6,202
Posted By cpolikowsky
Hi Jim - I ended up using something similar. ...
Hi Jim - I ended up using something similar.

#!/sbin/sh
for i in 1 2 3 4 5 6 7 8 9 10
do
while `true`
do
false
done
done

I agree not the best idea but...
6,202
Posted By cpolikowsky
Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is...
8,147
Posted By cpolikowsky
company policy has us lock out at 3 incorrect...
company policy has us lock out at 3 incorrect attempts. /bin/false would work except that these batch IDs also need to ssh between servers. each batch acct exists on 6 different servers. we are...
8,147
Posted By cpolikowsky
possible to lock accounts (passwd -l) and still allow acct to ssh to other server?
My scenario is as follows:

We have a handful of batch accounts that run our production jobs. Our users are able to use sudo to become that account. Also, because of other reasons, the passwords...
18,980
Posted By cpolikowsky
Worked Great!!!
Thank you for the info. It worked great in my script.
18,980
Posted By cpolikowsky
check user id before running script
I am looking for the syntax to check which ID is executing script.sh. If the the ID, is not user1 then I want the script to exit and return to command prompt, if it is user1, then I want the script...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 03:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy