Search Results

Search: Posts Made By: rcunn87
1,471
Posted By rcunn87
Rss reading
I am trying to make a script that downloads/reads an rss feed every couple of days and then parses through looking at the results. I am unsure of how to get the information from the feed. Anyone have...
2,070
Posted By rcunn87
SSH/Sftp log in fail recovery
I am connecting to X number of boxes and using sftp to grab files that need to backed up. the box i am doing it from should have keys set up, but in case something happens and it doesnt i need my...
3,291
Posted By rcunn87
Okay i got it i set NumberOfPasswordPrompts to 0...
Okay i got it i set NumberOfPasswordPrompts to 0 and then it doesnt ask thanks
3,291
Posted By rcunn87
can i edit taht at the start of a script then...
can i edit taht at the start of a script then change it back when the script is finished
3,291
Posted By rcunn87
Yes it is setup but if that fails for any reason...
Yes it is setup but if that fails for any reason i need the script to move on
3,291
Posted By rcunn87
testSSH() { ssh -1 infra@dev1cas ls & } ...
testSSH()
{
ssh -1 infra@dev1cas ls &
}
PARENT=$$
echo $PARENT
testSSH
sleep 4s
SSHID=`ps | grep $PARENT|grep ssh|awk {'print $2'}`
echo $SSHID
kill -9 $SSHID
testSSH
sleep 2s
SSHID=`ps...
3,291
Posted By rcunn87
Timing out a SSH
I need to make it so an autmated process which involves ssh, times out if ssh prompts for a password. Most of the time it shouldnt prompt for a password. But if it does i need it to time it out or...
4,424
Posted By rcunn87
getInfraFiles() { cd Infra/$DAY logTime ...
getInfraFiles()
{
cd Infra/$DAY
logTime
FILE_COUNT=$(/bin/ls -1 $ARCHIVE_DIRECTORY | /usr/bin/wc -l | /usr/bin/tr -d ' ')
if [[ "0" != $FILE_COUNT ]]; then
rm *
fi
logTime
echo...
4,424
Posted By rcunn87
i felt like i was leaving something out. I need...
i felt like i was leaving something out. I need it so it doesnt fail or if the ftp does the script moves on and goes to the other servers
4,424
Posted By rcunn87
Ftp hang
Im making a script that goes out to about 200 servers and grabs log files daily and need to make sure the script gets all the servers it can even if one is out. I am ftp'ing the files over but if i...
2,017
Posted By rcunn87
If there is a 0 in the number it doesnt work. ...
If there is a 0 in the number it doesnt work. and i need to include $2 in the check
2,017
Posted By rcunn87
making sure a command line paramter is a number
i need to make sure that a command line paramter is with in a certin set of numbers and i dont know how todo it with out checking individual numbers.

if test $1 -eq (need something here)
then...
21,116
Posted By rcunn87
Cron job at system start up
I want to know if there is a way to make a certain set of programs start in order at system startup with cron or something else i dont know about.
1,968
Posted By rcunn87
Thanks that worked. It was driving me nuts and...
Thanks that worked. It was driving me nuts and to dull my mind i deicded to post something and get lost in the world of wiki
1,968
Posted By rcunn87
Well i guess i should give more information now....
Well i guess i should give more information now. I've got a script here and theis is a method/function that is in the begining of it that if i comment it out the script goes to the rest of it, but...
1,968
Posted By rcunn87
Anything wrong with this
Does anyone see anything wrong with this.
#getInfraFiles()
#{
# cd Infra/$DAY
# rm *
# /usr/bin/ftp -i -n $LINE << cmd
# user "$USER" "$PASSWD"
# cd $INFRAPATH
# binary
# mget *...
6,329
Posted By rcunn87
Not exactly i want it to run with differnt vars...
Not exactly i want it to run with differnt vars and conditions depending on what flags i put out there. So i guess if i want to change vars according to a flag just do a case with the flags i want...
6,329
Posted By rcunn87
okay well im autmating the backup of log files...
okay well im autmating the backup of log files and itll run fine most of the time in the middle of the night but i want to make flags if i need to manualy run the script if i want to run past a...
6,329
Posted By rcunn87
Making flags for my script
I have no idea how to make my own flags.
2,576
Posted By rcunn87
email me if you know anything read the rules...
email me if you know anything

read the rules about email (https://www.unix.com/showthread.php?t=2971)
2,576
Posted By rcunn87
Passing Vars between scripts
Im running a script that runs scripts within it self and i need to pass vars made in the original script to scripts run within it and the only way i can think to do it is right the string to a file...
2,283
Posted By rcunn87
While loop problems
Here it wont terminate unless i take the not of my statement

#!/bin/bash
grabXML
parseXML
TAIL=5
#"$(cat dailyCasLog | tail -n 1)"
COUNT=200
LINE=5
#"$(cat dailyCasLog | head -n $COUNT |...
5,025
Posted By rcunn87
i already tried using search
i already tried using search
5,025
Posted By rcunn87
Yesterday's Day of week
I need o get yesterday's day of week but im not exactly sure. the actual name is what i want. I can do it with numbers but im not sure with words.
Showing results 1 to 24 of 24

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