Search Results

Search: Posts Made By: sun2ecliptic
Forum: Web Development 06-04-2010
18,414
Posted By sun2ecliptic
What action do you want the shell script to...
What action do you want the shell script to perform? This would be helpful in determining the best path for design, and for analyzing security risks. I would not recommend it, but if you're...
Forum: Web Development 06-04-2010
3,858
Posted By sun2ecliptic
Try embedding in web application/form?
What (language) are you using to process the input request on the initial request server? Perhaps, as an alternative, you could add a redirect to the code itself within the web application or form,...
Forum: Web Development 06-04-2010
3,489
Posted By sun2ecliptic
Apache - ModSSL (SSL Version?)
Does anyone know where Apache's use of SSL_VERSION_LIBRARY is defined and pulled from, in regard to headers? So far, I've tracked it down to mod_ssl. Which is fine, however, when I recompile mod_ssl...
Forum: Linux 04-06-2010
4,211
Posted By sun2ecliptic
You're really only left with one option for...
You're really only left with one option for restoring from tarball, aside from going into rescue mode. First, put the tarball on some sort of removable media (likely an external USB hard drive,...
1,866
Posted By sun2ecliptic
ls -al | awk '{print substr($3,0,7) " "...
ls -al | awk '{print substr($3,0,7) " " substr($9,0,50)}' | sed '1,3d'

In this example, awk uses the substr function to print the first 7 characters of the username field, include whitespace as a...
10,141
Posted By sun2ecliptic
Crude but quick: With the key/pair solution...
Crude but quick:

With the key/pair solution implemented, you could issue a for loop.

Script:

#!/bin/sh
for x in `cat ./server_list`
do
ssh $x "/sbin/shutdown <time>"
done

Example...
Forum: Linux 04-06-2010
4,211
Posted By sun2ecliptic
If I understand this correctly, you made a...
If I understand this correctly, you made a tarball of everything under /, and want to restore the contents of your tarball to a new system?
1,866
Posted By sun2ecliptic
ls -al | awk {'print $3,$9'} | sed '1,3d' > file ...
ls -al | awk {'print $3,$9'} | sed '1,3d' > file

Sed was included to remove the first two lines ("." and ".."). If you want "." and ".." to be included, remove "sed '1,3d'".
14,604
Posted By sun2ecliptic
Try this
Verified on Unix, BSD, and Linux based systems:

date +%A
Showing results 1 to 9 of 9

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