Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
adem

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