scripting to null
sinck@corp.quepasa.com
sinck@corp.quepasa.com
Wed, 19 Apr 2000 15:40:03 -0700 (MST)
I'd vote for needing a quote in there (presuming it isn't broken
across lines as mailed).
Try:
UPDATECMD="$APT_GET -o Dir::Etc::sourcelist=$SOURCESFILE update \>/dev/null"
and see if that works.
Or mebbe try the other quote.
YMMV depending no shell, quoting, and the results of xphoon.
David
\_ moin, moin,
\_
\_ I'm running commands from variables in a script, but when I tr to include
\_ redirection in the variable it doesn't work.
\_
\_ UPDATECMD="$APT_GET -o Dir::Etc::sourcelist=$SOURCESFILE update
\_ >/dev/null"
\_ UPGRADECMD="$APT_GET -o Dir::Etc::sourcelist=$SOURCESFILE -uu -q
\_ dist-upgrade"
\_
\_ $UPDATECMD && $UPGRADECMD
\_
\_ but
\_
\_ UPDATECMD="$APT_GET -o Dir::Etc::sourcelist=$SOURCESFILE update"
\_ UPGRADECMD="$APT_GET -o Dir::Etc::sourcelist=$SOURCESFILE -uu -q
\_ dist-upgrade"
\_
\_ $UPDATECMD >/dev/null && $UPGRADECMD
\_
\_ works. I presume it's suppoed to be like that, just wanted to see if
\_ anyone could tell me why :).
\_
\_ ciao,
\_
\_ der.hans
\_ --
\_ # der.hans@LuftHans.com home.pages.de/~lufthans/ www.OpNIX.com
\_ # If you're not learning, you're not living. - der.hans
\_
\_
\_ _______________________________________________
\_ Plug-devel mailing list - Plug-devel@lists.PLUG.phoenix.az.us
\_ http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-devel