Search Results

Search: Posts Made By: kadishmj
16,697
Posted By kadishmj
Thanks for everyone's suggestions. I finally got...
Thanks for everyone's suggestions. I finally got it working:

OUTFILE=summary.out
a='Deadlocks detected'
b='Lock escalations'

for PARAM in "${a}" "${b}"
do

echo ${PARAM}

COUNT=1

...
16,697
Posted By kadishmj
Thanks for looking at this Doc_RuNNeR, but I...
Thanks for looking at this Doc_RuNNeR, but I don't understand your solution
16,697
Posted By kadishmj
For Loop with Strings as parameters
I'm trying to create a script with a for loop that take strings in as the parameters. Some of the strings have spaces in them, and I can't get it to work properly. For example:


#!/bin/ksh
...
7,242
Posted By kadishmj
process already exists
My code is below. If the ftp co-process is still running, how would I end it?

#! /usr/bin/ksh

HOST=hostname
USER=user1
PASSWD=password
#logdir="/opt/system_logs"...
7,242
Posted By kadishmj
process already exists
I'm attempting to modify a script that ftps files from one machine to another (see this post (https://www.unix.com/showthread.php?t=1935&highlight=ftp+script) ). I've been testing it a few times, and...
37,133
Posted By kadishmj
Thanks for the suggestions!
Thanks for the suggestions! Here is my final code (it's working the way I want!).

#!/bin/sh

logdir="/opt/IBMIHS/logs"
TODAY=`date '+%y%m%d'`

cd $logdir

# This loop moves all files in...
37,133
Posted By kadishmj
Here is my code
Here is my code (note, I removed some blank lines, and the error is now occuring on line 11):

#!/bin/sh

logdir="/opt/IBMIHS/logs"
TODAY=`date '+%y%m%d'`

cd $logdir

# This loop returns...
37,133
Posted By kadishmj
For Loop with find
I'm trying to write a script to archive some log files, and I'm getting a little stuck. My 'find' command by itself works great, returning all of the log files I need, but when I try to combine it...
2,251
Posted By kadishmj
Dynamic includes file for tar command
I'm writing a script to tar a list of log files. The tar command calls an includes file, which lists all of the log files that I want.

My apache web server, however, creates a log file every...
6,341
Posted By kadishmj
Thanks for the tip. I ended up not using the...
Thanks for the tip. I ended up not using the .shosts file. Instead, I generated a public/private key pair. See the following for more info:

http://bumblebee.lcs.mit.edu/ssh2/
6,341
Posted By kadishmj
scp using a .shosts file
Hello,

I'm trying to scp from the root user of machine A to the root user of machine B without being prompted for a password. On machine B, I created a .shosts file in the '/' directory with the...
Showing results 1 to 11 of 11

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