logo       

Re: Feature Request - Message to user of machine being backed up: msg#00147

sysutils.backup.backuppc.general

Subject: Re: Feature Request - Message to user of machine being backed up

You are a genius! I didn't look in the XferLOG file, only the LOG files.

In the XferLOG file was:

Executing DumpPreUserCmd: /bin/alert_user.sh
/bin/alert_user.sh: smbclient: command not found

Duh!

I put in the full path to smbclient in the script, and it worked like a charm!

Thanks again-

Mark



Quoting Craig Barratt <cbarratt@xxxxxxxxxxxxxxxxxxxxx>:

> mark@xxxxxxxxxxxxxxxxxx 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 <mikep@xxxxxxxxxxxxxx>
> From: Doug Lytle <support@xxxxxxxxxx>
> Cc: backuppc-users@xxxxxxxxxxxxxxxxxxxxx
> 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.
> >>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
>





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise