Search Results

Search: Posts Made By: shade917
2,022
Posted By shade917
Okay so basically what this script is doing is...
Okay so basically what this script is doing is that it will take the addresses and ports from the address.txt file then it will get the numbers based on the address found and from there it should...
2,022
Posted By shade917
Thank you so much for all the responses....
Thank you so much for all the responses. Unfortunately none of those solutions worked for me either.
2,022
Posted By shade917
No that didn't fix it for me. It still loops...
No that didn't fix it for me. It still loops...
2,022
Posted By shade917
Can't figure out why this repeats
#!/bin/sh
while IFS=: read address port; do
: ${port:=443}
address=$address
port=$port

cd $f_location

number=`grep "$address"...
20,025
Posted By shade917
See what you are doing is storing the results of...
See what you are doing is storing the results of TIME_DATE_SPLIT and TIME_CHECK as strings. The "-eq" expression only works with integers so replace that with "=" and it should work.
20,025
Posted By shade917
Try this: TIME_CHECK="PM" TIME-CLOCK="PM" ...
Try this:
TIME_CHECK="PM"
TIME-CLOCK="PM"

if [ $TIME_CHECK = $TIME-CLOCK ]; then
echo "You have access!"
else
echo "ACCESS DENIED!"
fi

or this:
TIME_CHECK=PM...
13,157
Posted By shade917
OpenSSL Connection Time Out
Okay so I am running a command like
openssl s_client -showcerts -connect mail.google.com:443What happens is that it takes about 2 or 3 minutes for the connection to time out and for the script to...
15,699
Posted By shade917
Well I am running the script on a Solaris OS and...
Well I am running the script on a Solaris OS and the script is in bash
15,699
Posted By shade917
Converting Month into Integer
okay so i run an openssl command to get the date of an expired script. Doing so gives me this:

enddate=Jun 26 23:59:59 2012 GMT

Then i cut everything out and just leave the month which is...
1,854
Posted By shade917
Read text file and use it as input
I need to take a text file that holds a bunch of data and run each the stuff in it as an input for the program.


the file would hold stuff like this:
thing1.awesomesite.com 80 123.456...
2,257
Posted By shade917
The output of the code would be something like...
The output of the code would be something like this:

blah blah
blah blah

Certificate chain
0 s:/C=US/ST=New Jersey/L=Passaic/O=Super Secret Company/OU=Webserver/CN=blah blah blah
blah blah...
2,257
Posted By shade917
openSSL command help
I am running a openssl command like this:
openssl s_client -showcerts -connect $fqdn:$portand the result is some ridiculous amount of stuff but i only want to cut out part of the certificate chain....
961
Posted By shade917
While loop help
So this is what the script I am running looks like:

$word_new=catdog12
while [$word_new -le catdog*]
do
x=1
$word_new=`ls -l $1* | cut -d"." -f$x`
...
2,548
Posted By shade917
the reason is that there is more than one file in...
the reason is that there is more than one file in the directory and some of them also have the name thing in it and i want to cut a part from that file and store it in a variable
2,548
Posted By shade917
its supposed to be grep thing ** my fault ...
its supposed to be grep thing

** my fault

---------- Post updated at 12:55 PM ---------- Previous update was at 12:54 PM ----------

its supposed to be grep thing not cert

ls command -->...
2,548
Posted By shade917
a simple input would be --> ...
a simple input would be --> john-y-1212-shade-thing-*

ls command --> old_thing==`ls -1 $1* | grep cert | cut -d"-" -f6`

output after ls command --> dog cat cow

output i want is --> dog
2,548
Posted By shade917
a simple input would be --> ...
a simple input would be --> john-y-1212-shade-thing-*

output after ls command --> dog cat cow

output i want is --> dog
2,548
Posted By shade917
Cut command help
Okay so the issue I am having is that when i run this:
ls -1 $1* | grep thing | cut -d"-" -f6

in a directory it ends up cutting the 6th element from all the files that are in the directory which...
7,597
Posted By shade917
Break vs Continue
Okay so I am having trouble understand what the computer will do with a code like this

if [ file exists ] ; then
echo
echo "Found the file"
...
Showing results 1 to 19 of 19

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