Search Results

Search: Posts Made By: serverchief
10,407
Posted By serverchief
Works. Thank you! ---------- Post...
Works.

Thank you!

---------- Post updated at 12:05 PM ---------- Previous update was at 12:02 PM ----------

Speaking of injections, what would be the best way to sanitize the input?
10,407
Posted By serverchief
this code above is a bastardized version of my...
this code above is a bastardized version of my attempts to get it to work, i think quotes are out of context here, maybe there is an easier way to make it work.
10,407
Posted By serverchief
Hi Corona, Thanks for the help, i got it to...
Hi Corona,

Thanks for the help, i got it to work and decided to take it step further. I'm hoping you would know what i'm doing wrong.

I would like for the user to be prompted, but if value for...
10,407
Posted By serverchief
Corona688 You are correct and my mistake, i...
Corona688

You are correct and my mistake, i got the first email at 2:51pm and used the sample i saw in the email.

This version does work but adds a minor over head - would you know of a way to...
10,407
Posted By serverchief
wont work, goes into infinite loop until ctrl-c. ...
wont work, goes into infinite loop until ctrl-c.

thanks
10,407
Posted By serverchief
bash read within function with arguments
I have trouble getting this logic to work

#!/bin/bash
function assign_var(){
while [ -z $1 ]
do
read -p "$2 :" $3
done
}
assign_var '$IPADDRESS' ipaddress IPADDRESS


Basicly, i...
Showing results 1 to 6 of 6

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