|
From: Craig B. <cba...@us...> - 2005-02-21 19:49:44
|
ma...@eh... writes:
> Has anybody been able to make this work?
Yes. Attached is one message from the archives.
Do you see any errors in the XferLOG file? Any output/errors
from the script will go there. You will need to look carefully
near the top of the file.
Maybe you should use explicit paths in your script (eg: /bin/echo
and /path/to/smbclient. BackupPC trims the PATH to a small set of
values (see $Conf{MyPath}). I'm not sure if bash will reset the
PATH when it starts.
Craig
---------- Forwarded message ----------
To: Michael Pellegrino <mi...@so...>
From: Doug Lytle <su...@dr...>
Cc: bac...@li...
Date: Wed, 09 Jun 2004 17:08:51 -0400
Subj: Re: [BackupPC-users] 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.
>>
|