Re: rsyncing in the background
Marc Lobelle <[email protected]>
| Newsgroups | gmane.mail.exmh.user |
|---|---|
| Message-ID | <[email protected]> |
> Hello,
>
> I would like to use the possibility of launching background activities in exmh
> ro run a rsync program (basically I run exmh on my "main computer" and I would
> like to use exmh also on my notebook while keeping the local mh folders
> synchronised with those on my main computer) and then flist. I never
> programmed in tcl but I assume I just would have to add a Hook_Background()
> procedure in user.tcl.
>
> Is that correct and what should I place in this procedure to run a unix
> command such as rsync then call flist ?
I answer to my own mail because I have a partial solution but I could use some
help.
What I did was adding the following at the end of user.tcl:
#ML061212
proc Inc_Custom {} {
# exec xterm -geometry 40x5 -e /usr/bin/sh /opt/csw/lib/exmh-2.6.3/user.sh
exec /usr/bin/sh /opt/csw/lib/exmh-2.6.3/user.sh
Flist_FindSeqs
Scan_FolderForce
}
#end ML061212
This procedure is called when exmh wants to inc (in background or foreground)
and basically the shell script user.sh populates the folders usinc rsync from
my main computer. This works fine. (the xterm variant was used for debugging)
The last 2 lines are intended to have the display updated automatically when
new messages arrive and this does not work: I have to click regularly on
"rescan folder" .
Has anybody a suggestion to automate it ?
Thanks
Marc
>
> Thanks for your help
>
> Marc
>
> _______________________________________________
> Exmh-users mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/exmh-users