var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
wget if linux question
Linux is driving me spare, I want a bit of code that does the following:
if [wget succeeds]; then
echo Doing things
if [ "$?" -eq 0 ]; then
but no luck...
Well it really depends on what shell the script is coded in, but I believe you want:
$? is the return code from the last executed program. You don't need/want quotes around it.
if [ $? -eq 0 ]; then
█ Umbra Hosting
cPanel | Softaculous | CloudLinux | R1Soft | Ksplice
Web Hosting, Reseller Hosting, VPS, Dedicated Servers, Colocation
Thanks Frank, I'll give it a go
It's using /bin/sh - annoyingly simple answer!