Announcement

Collapse
No announcement yet.

OT: File Copy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    OT: File Copy



    Easier and possibly safer might be using of symlinks. For example, assuming
    you want to modify the file /etc/xxx/aaaa.conf, you create a file aaaa.conf
    in your miva data dir and then symlink it manually to /etc/xxx/aaaa.conf (ln
    -s /home/user/mivadata/aaaa.conf /etc/xxx/aaaa.conf). Now you can modify,
    delete or recreate it from within a Miva Script.

    You can do it also in the opposite way - symlinking the directory /etc/xxx/
    to your miva data dir. You can then add and modify any files in it. It may
    be less safe, especially if you plan to modify files in some important
    system directory. In this way, you would also have to open the permissions
    more than in the first case. Also, unlike in the first case, you will need
    to allow the use of symlinks in Empresa configuration (i.e.
    securityoptions=15).

    If you plan using external script, the easiest is Shell script - you can use
    the same commands you use in Telnet.

    Ivo
    http://mivo.truxoft.com





    -----Original Message-----
    From: Patrick Locke

    Greetings all,

    I have a need to copy a file from the Miva data directory to another
    directory on the server that is not part of either the data or script
    directory trees. I also need to be able to delete the file later. I was
    planing on useing MvCALL to a perl or someother type of script but can't
    seem to get the perl script I found to work. If anyone has a sample or
    something I would appreciate it.

    Patrick



    #2
    OT: File Copy



    ------=_NextPart_000_0054_01C55B8B.70444030
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable

    Greetings all,

    I have a need to copy a file from the Miva data directory to another =
    directory on the server that is not part of either the data or script =
    directory trees. I also need to be able to delete the file later. I =
    was planing on useing MvCALL to a perl or someother type of script but =
    can't seem to get the perl script I found to work. If anyone has a =
    sample or something I would appreciate it.

    Patrick
    ------=_NextPart_000_0054_01C55B8B.70444030--

    Comment

    Working...
    X