BackupPC-users

Re: [BackupPC-users] DumpPreUserCmd bash script not exiting

2012-02-10 08:40:44
Subject: Re: [BackupPC-users] DumpPreUserCmd bash script not exiting
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 10 Feb 2012 07:39:01 -0600
On Fri, Feb 10, 2012 at 1:27 AM, Mark Coetser <mark AT tux-edo.co DOT za> wrote:
>
> Not that I am aware of, I am using the full path too all commands and if
> run as "su - backuppc" "/full/path/to/script" as defined in the host.pl
> it works as expected but when run from the backuppc dump command it runs
> the first part of the script then just never exits
>

Without seeing it, I can't even make a good guess.   If it is an ssh
command to the target, it would wait for the last command to exit or
close what is its std out/err.  Maybe some variable does not expand in
that environment and you end up with an empty argument list to
something like 'cat' which will then wait forever reading stdin.    If
you can identify the process the shell is waiting for, strace might
show what system calls it is making.

-- 
  Les Mikesell
    lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/