Content added Content deleted
imported>mutante mNo edit summary |
No edit summary |
||
(16 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
Feel free to use this as a pastebin for questions on [[IRC]] that are about scripting. |
|||
Content below should be (has been) copied to other permanent places after problem solved. |
|||
Free for new content now. |
|||
<pre> |
<pre> |
||
geist:/home/mutante# dpkg --get-selections | grep apache2 |
|||
#!/bin/bash |
|||
apache2 install |
|||
IPS=$(ifconfig | awk '/inet/ { print $2 }' | awk -F ":" '{ print $2 }') |
|||
apache2-common install |
|||
apache2-mpm-worker install |
|||
apache2-utils install |
|||
geist:/home/mutante# dpkg -L apache2 |
|||
NUMIPS=$(echo $IPS | wc -w) |
|||
/. |
|||
/usr |
|||
/usr/share |
|||
/usr/share/doc |
|||
/usr/share/doc/apache2 |
|||
/usr/share/doc/apache2/copyright |
|||
/usr/share/doc/apache2/changelog.Debian.gz |
|||
COUNT=1 |
|||
for i in $IPS |
|||
do |
|||
export IP$COUNT=$i |
|||
COUNT=`expr $COUNT + 1` |
|||
done |
|||
</pre> |
</pre> |
||
[[Category:Wiki]] |
|||
[[Category:Internal]] |
|||
[[Category:IRC]] |
Latest revision as of 23:43, 22 March 2011
Feel free to use this as a pastebin for questions on IRC that are about scripting.
Content below should be (has been) copied to other permanent places after problem solved.
Free for new content now.
geist:/home/mutante# dpkg --get-selections | grep apache2 apache2 install apache2-common install apache2-mpm-worker install apache2-utils install geist:/home/mutante# dpkg -L apache2 /. /usr /usr/share /usr/share/doc /usr/share/doc/apache2 /usr/share/doc/apache2/copyright /usr/share/doc/apache2/changelog.Debian.gz