Current time: 11-22-2024, 08:56 PM Hello There, Guest! (LoginRegister)


Post Reply 
FreeBSD ?
Author Message
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #63
RE: FreeBSD ?
good morning everybody,

so how should it be diffrent, I just have some errors which wanted to be solved, but I'm a bad programmer so I need you once more but think I have a good hint this time Tongue

so current error looks like this
just the tail of the DEBUG
Code:
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/cp -p /usr/local/etc/ispcp/postfix/backup/main.cf.ispcp /usr/local/etc/postfix/main.cf'), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/cp -p /usr/local/etc/ispcp/postfix/backup/master.cf.ispcp /usr/local/etc/postfix/master.cf'), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
cp: /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access}: No such file or directory
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/bin/cp -p /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access} /usr/local/etc/postfix/ispcp' returned '1' status !
DEBUG: pop_el() sub_name: sys_command(), msg: ERROR: External command '/bin/cp -p /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access} /usr/local/etc/postfix/ispcp' returned '1' status !
ERROR: External command '/bin/cp -p /usr/local/etc/ispcp/postfix/ispcp/{aliases,domains,mailboxes,transport,sender-access} /usr/local/etc/postfix/ispcp' returned '1' status !


but I think I know how to solve but don't how to write in the script.
first of all for this thing is that we change to directory
Code:
cd /usr/local/etc/ispcp/postfix/ispcp/

The syntax for working cp command here should be like
Code:
cp -p aliases domains mailboxes transport sender-access /usr/local/etc/postfix/ispcp

the changes should be around here in ispcp-setup-methods.pl
Code:
$cmd = "$main::cfg{'CMD_CP'} -p $vrl_dir/{aliases,domains,mailboxes,transport,sender-access} $main::cfg{'MTA_VIRTUAL_CONF_DIR'}";
        $rs = sys_command($cmd);
        return $rs if ($rs != 0);

        $cmd = "$main::cfg{'CMD_CP'} -p $vrl_dir/{aliases,domains,mailboxes,transport,sender-access} $wrk_dir";
        $rs = sys_command($cmd);
        return $rs if ($rs != 0);

        $cmd = "$main::cfg{'CMD_POSTMAP'} $main::cfg{'MTA_VIRTUAL_CONF_DIR'}/{aliases,domains,mailboxes,transport,sender-access} &> /tmp/ispcp-setup-services.log";
        $rs = sys_command($cmd);
        return $rs if ($rs != 0);

But its just an idea, maybe it can help, otherway I'm sure you solve it somehow Tongue
(This post was last modified: 03-13-2008 07:48 PM by StevenE.)
03-13-2008 07:46 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
FreeBSD ? - jensen - 02-12-2008, 11:46 AM
RE: FreeBSD ? - gOOvER - 02-12-2008, 04:07 PM
RE: FreeBSD ? - BeNe - 02-12-2008, 06:23 PM
RE: FreeBSD ? - gOOvER - 02-13-2008, 09:19 PM
RE: FreeBSD ? - jensen - 02-13-2008, 10:28 PM
RE: FreeBSD ? - gOOvER - 02-13-2008, 10:43 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 02:19 AM
RE: FreeBSD ? - gOOvER - 02-27-2008, 02:46 AM
RE: FreeBSD ? - gOOvER - 02-27-2008, 02:27 AM
RE: FreeBSD ? - StevenE - 02-27-2008, 02:33 AM
RE: FreeBSD ? - joximu - 02-27-2008, 02:49 AM
RE: FreeBSD ? - StevenE - 02-27-2008, 02:52 AM
RE: FreeBSD ? - gOOvER - 02-27-2008, 02:57 AM
RE: FreeBSD ? - StevenE - 02-27-2008, 03:10 AM
RE: FreeBSD ? - blocker - 02-27-2008, 05:14 PM
RE: FreeBSD ? - joximu - 02-27-2008, 03:26 AM
RE: FreeBSD ? - Zothos - 02-27-2008, 07:04 PM
RE: FreeBSD ? - joximu - 02-27-2008, 08:08 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 08:20 PM
RE: FreeBSD ? - joximu - 02-27-2008, 08:24 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 09:07 PM
RE: FreeBSD ? - joximu - 02-27-2008, 09:18 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 09:42 PM
RE: FreeBSD ? - joximu - 02-27-2008, 09:53 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 10:19 PM
RE: FreeBSD ? - joximu - 02-27-2008, 10:55 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 11:10 PM
RE: FreeBSD ? - joximu - 02-27-2008, 11:17 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 11:21 PM
RE: FreeBSD ? - joximu - 02-27-2008, 11:31 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 11:33 PM
RE: FreeBSD ? - joximu - 02-28-2008, 12:28 AM
RE: FreeBSD ? - StevenE - 02-28-2008, 07:00 PM
RE: FreeBSD ? - gOOvER - 02-28-2008, 07:06 PM
RE: FreeBSD ? - StevenE - 02-28-2008, 09:34 PM
RE: FreeBSD ? - blocker - 02-29-2008, 12:24 PM
RE: FreeBSD ? - StevenE - 02-29-2008, 05:47 PM
RE: FreeBSD ? - RatS - 02-29-2008, 06:59 PM
RE: FreeBSD ? - StevenE - 03-01-2008, 01:24 AM
RE: FreeBSD ? - blocker - 03-01-2008, 11:18 AM
RE: FreeBSD ? - StevenE - 03-03-2008, 01:26 AM
RE: FreeBSD ? - blocker - 03-03-2008, 03:18 PM
RE: FreeBSD ? - StevenE - 03-03-2008, 08:00 PM
RE: FreeBSD ? - blocker - 03-04-2008, 05:58 PM
RE: FreeBSD ? - StevenE - 03-06-2008, 01:57 AM
RE: FreeBSD ? - BeNe - 03-06-2008, 02:14 AM
RE: FreeBSD ? - StevenE - 03-06-2008, 02:24 AM
RE: FreeBSD ? - StevenE - 03-08-2008, 12:53 AM
RE: FreeBSD ? - joximu - 03-08-2008, 01:29 AM
RE: FreeBSD ? - StevenE - 03-08-2008, 02:26 AM
RE: FreeBSD ? - joximu - 03-08-2008, 02:46 AM
RE: FreeBSD ? - StevenE - 03-10-2008, 10:30 PM
RE: FreeBSD ? - joximu - 03-10-2008, 10:39 PM
RE: FreeBSD ? - StevenE - 03-10-2008, 10:46 PM
RE: FreeBSD ? - joximu - 03-10-2008, 11:06 PM
RE: FreeBSD ? - StevenE - 03-10-2008, 11:06 PM
RE: FreeBSD ? - StevenE - 03-10-2008, 11:31 PM
RE: FreeBSD ? - StevenE - 03-13-2008, 12:27 AM
RE: FreeBSD ? - blocker - 03-13-2008, 11:58 AM
RE: FreeBSD ? - RatS - 03-13-2008, 02:06 AM
RE: FreeBSD ? - StevenE - 03-13-2008, 02:19 AM
RE: FreeBSD ? - RatS - 03-13-2008, 02:30 AM
RE: FreeBSD ? - StevenE - 03-13-2008 07:46 PM
RE: FreeBSD ? - StevenE - 03-13-2008, 11:41 PM
RE: FreeBSD ? - StevenE - 03-14-2008, 12:11 AM
RE: FreeBSD ? - StevenE - 03-14-2008, 01:43 AM
RE: FreeBSD ? - blocker - 03-14-2008, 11:17 AM
RE: FreeBSD ? - StevenE - 03-14-2008, 09:10 PM
RE: FreeBSD ? - blocker - 03-15-2008, 11:43 AM
RE: FreeBSD ? - StevenE - 03-17-2008, 11:27 PM
RE: FreeBSD ? - joximu - 03-17-2008, 11:46 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:00 PM
RE: FreeBSD ? - gOOvER - 03-18-2008, 07:20 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:39 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:44 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:53 PM
RE: FreeBSD ? - joximu - 03-18-2008, 09:33 PM
RE: FreeBSD ? - rbtux - 03-18-2008, 10:24 PM
RE: FreeBSD ? - StevenE - 03-19-2008, 01:00 AM
RE: FreeBSD ? - joximu - 03-19-2008, 01:29 AM
RE: FreeBSD ? - StevenE - 03-19-2008, 01:50 AM
RE: FreeBSD ? - joximu - 03-19-2008, 03:22 AM
RE: FreeBSD ? - StevenE - 03-19-2008, 06:15 PM
RE: FreeBSD ? - xsintez - 04-02-2008, 11:02 PM
RE: FreeBSD ? - joximu - 04-02-2008, 11:51 PM
RE: FreeBSD ? - jensen - 04-05-2008, 03:42 AM
RE: FreeBSD ? - blocker - 04-05-2008, 03:32 PM
RE: FreeBSD ? - StevenE - 04-08-2008, 11:27 PM
RE: FreeBSD ? - Zothos - 04-09-2008, 12:00 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 12:22 AM
RE: FreeBSD ? - Zothos - 04-09-2008, 12:29 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 12:35 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 01:10 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 11:11 PM
RE: FreeBSD ? - StevenE - 04-10-2008, 10:03 PM
RE: FreeBSD ? - Zothos - 04-10-2008, 10:34 PM
RE: FreeBSD ? - StevenE - 04-10-2008, 10:50 PM
RE: FreeBSD ? - DJ_XaKeP - 04-11-2008, 02:41 AM
RE: FreeBSD ? - blocker - 04-11-2008, 11:22 AM
RE: FreeBSD ? - StevenE - 04-11-2008, 05:07 PM
RE: FreeBSD ? - StevenE - 04-16-2008, 05:47 PM
RE: FreeBSD ? - blocker - 04-18-2008, 11:12 AM
RE: FreeBSD ? - StevenE - 04-24-2008, 06:30 PM
RE: FreeBSD ? - joximu - 04-24-2008, 07:15 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)