#!/bin/bash catId=0 subCatId=1 if [ "$1" != "" ] && [ "$2" != "" ] then catId=$1 subCatId=$2 fi perl -w /root/script/piwigo_refresh.pl \ --base_url=https://change.me/gallery \ --site=2 \ --user="-change me-" \ --password="-change me-" \ --directory="/var/www/piwigo/network" \ --caddie=0 \ --privacy_level=4 \ --cat=${catId} \ --subcat=${subCatId}