SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Re: Windows Messaging
Author Message
Post Re: Windows Messaging 
Michael,

This is what I do. I have a text file with the message to be displayed
to the end user and I use the following commands within a shell script:

#!/bin/sh
/bin/cat /backupdata/conf/popmsg.txt | /usr/bin/smbclient -U BackupPC -M $1

This works quite nicely.

Doug



Michael Pellegrino wrote:

Craig Barratt <cbarratt <at> users.sourceforge.net> writes:



#!/bin/csh -f

Finally, you might want to change it so the host name gets passed to
the script:

$Conf{DumpPreUserCmd} = '/usr/local/backuppc/smbnetsend $host';

and then use $1 (first argument) in your script to get the hostname.










-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post Re: Windows Messaging 
Michael Pellegrino writes:


#!/bin/csh -f

Finally, you might want to change it so the host name gets passed to
the script:

$Conf{DumpPreUserCmd} = '/usr/local/backuppc/smbnetsend $host';

and then use $1 (first argument) in your script to get the hostname.



This is excellent! However, I am experiencing a small problem with the
following setup:

$Conf{DumpPreUserCmd} = '/usr/local/backuppc/smbnetsend $host $type';

smbnetsend:

#!/bin/bash
echo "A $2 backup of your pc has been started..."|/usr/bin/smbclient -M
BackupPC $1

For some reason, the popup message received is:

"The DumpPreUserCmd backup of your pc has been started..."

Did I miss something?

Oops, this is a bug. It turns out $type is really the type
of command, not the type of backup. I'll change the type of
command to cmdType, and leave $type to be "full" or "incr".

I'll fix this for 2.1.0.

Craig


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB