06-14-2012
I prefer to redirect at the end of the loop too because I think it's the most portable construct. If the loop is several pages long I usually put a comment at the beginning that tells what is read from.
4 More Discussions You Might Find Interesting
1. IP Networking
I have two machines on my network - one OSX mac and one linux box. The mac is my main workhorse, and the linux box does occasional chores and webserving. Currently the mac shares (via NFS) files with the Liinux box.
Would it be less demanding on the mac if I made it a client, and moved my files... (2 Replies)
Discussion started by: mistafeesh
2 Replies
2. Web Development
I read somewhere that you should make sure Apache is configured to not allow symbolic links to be followed outside the webroot, as this can compromise security.
I can imagine how this could lead to a security risk:
eg:
Is my assumption correct? -- Is it nothing more than: "its just... (0 Replies)
Discussion started by: jzacsh
0 Replies
3. Shell Programming and Scripting
what does today=${1:-${today}} mean???
I saw a script which has these two lines:
today=`date '+%y%m%d'`
today=${1:-${today}}
but both gives the same value for $today
user:/export/home/user>today=`date '+%y%m%d'`
user:/export/home/user>echo $today
120326... (2 Replies)
Discussion started by: Vidhyaprakash
2 Replies
4. AIX
working through VIOS backup options. Generally, we store mksysb's on a server and then NFS mount them from it to copy to a VIO optical library, etc.
In the case of a VIO backup, I see the -mksysb option to backupios and understand that it doesn't include the NIM resources in the backup.
... (3 Replies)
Discussion started by: maraixadm
3 Replies
LEARN ABOUT DEBIAN
smd-loop
smd-loop(1) Sync Mail Dir (smd) documentation smd-loop(1)
NAME
smd-loop - iterates smd-pull and smd-push
SYNOPSIS
smd-loop [-vt]
DESCRIPTION
smd-loop runs smd-push and smd-pull at regular intervals as defined by the user in the ~/.smd/loop configuration file. On errors that are
reported to be transient, it retries a second time before failing.
The configuration file is line-oriented. Each line is composed of three space separated fields: pull-frequency, push-frequency and end-
point-name. Frequencies are expressed in minutes, while endpoint name is a valid name for smd-pull(1) and smd-push(1). Lines beginning with
# are considered as comments. The following example calls the command smd-pull default every 3 minutes, and smd-push default every 10.
Example:
# pull-frequency push-frequency endpoint-name
3 10 default
OPTIONS
-v Increase program verbosity (printed on stderr)
-t Just create a template configuration file if none
FILES
~/.smd/loop
SEE ALSO
mddiff(1), smd-server(1), smd-client(1), smd-push(1), smd-pull(1)
AUTHOR
Enrico Tassi <gares@fettunta.org>
11 June 2012 smd-loop(1)