Multiple-line Commands

Advertisement

adem
Guest

Multiple-line Commands

Hi,

Is there a way to enter more than one command line in Preferences | Commands menu?

This is what I want to do, if I can:_

<COMMANDS>
#go to squidGuard db folder
cd /usr/local/squidGuard/db/

#make sure that all files are owned by Squid
chown -R squid.squid *

#stop Squid
/etc/rc.d/init.d/squid stop

#Re-compiling config files:
su squid
/usr/local/squidGuard/bin/squidGuard -C all -d
exit

#start Squid
/etc/rc.d/init.d/squid start
</COMMANDS>

Can it be done?

TVMIA,

Cheers,
Adem

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: Multiple-line Commands

I'm not expert for UNIX shells, but I believe that you can separate multiple commands with semicolon (;).

However you cannot execute su, or at least most of the servers does not allow this for non-interactive sessions.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum