Search Results

Search: Posts Made By: WhotheWhat
14,308
Posted By WhotheWhat
So to see if this is the case, I need to copy the...
So to see if this is the case, I need to copy the "PATH=" variable from the env file into my script?

Sorry if this was answered in the link you supplied, but I am a beginner with unix and am not...
14,308
Posted By WhotheWhat
Yes, the full path is being used. No, I...
Yes, the full path is being used.

No, I cannot install it under root.
14,308
Posted By WhotheWhat
What details would you nedd? The jist of it...
What details would you nedd?

The jist of it is it uses the sudo command to change the permissions of a file, making it writable, then empties the contents of said file (cat > /dev/null).

So...
14,308
Posted By WhotheWhat
Sudo command not working with cron job.
Hello,

I have written a script that has a sudo command to change file permissions within it.

When I run the script manually, the sudo command inside of it works fine.

When the script is...
Forum: Cybersecurity 11-25-2008
12,140
Posted By WhotheWhat
APACHE: Tie in Web Page login with server login
Hello,

I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification.

I was wondering if there was anyway to tie-in the login for this...
Forum: Web Development 11-19-2008
13,627
Posted By WhotheWhat
hmmm, not really sure if I can use PAM. ...
hmmm,

not really sure if I can use PAM.

Thanks for the suggestion though.
Forum: Web Development 11-18-2008
13,627
Posted By WhotheWhat
APACHE: Tie in Web Page login with server login
Hello,

I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification.

I was wondering if there was anyway to tie-in the login for...
5,434
Posted By WhotheWhat
Got It
echo "10-21-2008,someword,blah,127.0.0.1,8,3" | awk -F"," '{printf("%20s %20s %20s %20s %5s %5s \n", $1,$2,$3,$4,$5,$6)}'
-> Worked perfectly.

echo "10-21-2008,someword,blah,127.0.0.1,8,3" |...
5,434
Posted By WhotheWhat
Here is what I have tried: printf "%-30s\n"...
Here is what I have tried:

printf "%-30s\n" ${arr[$i]} |sed 's/,/ /g'
which gives me no padding, just a space in place of commas

printf "%-10s%-10s%-10s%-10s%-10s%-10s%-10s%-10s\n", ${arr[$i]}...
5,434
Posted By WhotheWhat
Convert from CSV to space padded columns (.ksh)
Hello,

Could someone please help me to convert a string(s) of comma separated values into space padded columns in .ksh?

ex.

10-21-2008,someword,blah,127.0.0.1,8,3...
Showing results 1 to 10 of 10

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