From: Paul W. <pwe...@co...> - 2004-06-09 03:49:30
|
Thanks for the quick feed back. I create a sh script with: echo "This is a TEST"|smbclient -U "BackupPC" -M TYRANT >>/dev/null and in my main config.pl: $Conf{DumpPreUserCmd} = '/usr/local/backuppc/smbnetsend'; This still does not seem to send the message, although it works from the shell.. I am a little puzzled. Should this not send a message to the same machine every time a backup starts? Thanks, Paul Quoting Craig Barratt <cba...@us...>: Paul Weekley writes: > Where could I add a line to send a netbios/smb message to a > workstation when a backup is about to start? The line would be > something like: > > "Your machine is now being backed up..blah blah" | smbclient -M $host > -U "BackupPC" >> /dev/null > > Any ideas? I thought it may be help on a machine by machine bases to allow > this as an option. Just another way let users know when a backup starts (and > stops). See $Conf{DumpPreUserCmd}. Note that BackupPC doesn't execute commands with /bin/sh (it calls exec() directly since the security is better). Therefore, pipes and redirects won't work inside $Conf{DumpPreUserCmd} (unless you add /bin/sh -c to the front of your command, and do some tricky quoting). Instead, put your commands in a short shell script, and point $Conf{DumpPreUserCmd} to your script. Craig ----------------------------------------------------------- www.netxposed.com Maintaining the integrity of network data by Xposing the vulnerabilities and increasing network security awareness. |