possible to execute system command on remote host?

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default possible to execute system command on remote host?

    I have a couple clients with domains on a remote host that uses cPanel
    for domain management. I use a basic old version of ws_ftp to
    upload/download files. So far everything has been mostly fine.

    Lately the host has gotten increasingly slow in making minor tweaks to
    accounts; such as creating a symbolic link to the statistics directory
    which is not under the www dir by default for instance. what I am
    wondering is if I can use a perl script to execute a system command
    like:
    ln -s testlink somedir

    possible?

    d
    dan baker Guest

  2. Similar Questions and Discussions

    1. Read user log from a remote host
      Hi, Just looking for soem guidance on the above topic,Reading a remote hosts suer log. basically what i am trying to do is get the suer to enetr...
    2. Problem deploying to remote host
      I'm having trouble deploying a flex beta 3 project - which works fine locally - to a remote host I am putting myProject.html and myProject.swf in...
    3. how to execute command on remote machine
      Hi: I want run perl script on machine A, A: ./test.pl ../test.pl will ssh to machine B execute command (cd dirB; runB &), then ssh to machine...
    4. RUN/execute a Command-Line command from an ASP page
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    5. RUN/execute a Command-Line command from an ASP page.
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
  3. #2

    Default Re: possible to execute system command on remote host?


    "dan baker" <botfood@yahoo.com> wrote in message
    news:13685ef8.0308091150.4f486754@posting.google.c om...
    > what I am
    > wondering is if I can use a perl script to execute a system command
    > like:
    > ln -s testlink somedir
    >
    Anything is possible, but in your case probably not likely to work. Since
    you don't mention shell access, and as it wouldn't have necessitated your
    posting here, I'll assume that that is not an option. So, all you can do is
    create a mini script that attempts that system call and see whether it
    succeeds or not (call it up in your browser of choice, since you have no
    other way of executing scripts remotely). What luck you will have depends on
    what commands your host has given access to to the anonymous web user (and
    allowing users to create symbolic links anywhere they want on the system is
    surely not a good thing).

    Matt


    Matt Garrish Guest

  4. #3

    Default Re: possible to execute system command on remote host?

    dan baker <botfood@yahoo.com> wrote:
    > what I am
    > wondering is if I can use a perl script to execute a system command
    > like:
    > ln -s testlink somedir

    You do not need a "system command", you can make symbolic
    links with native Perl:

    perldoc -f symlink

    > possible?

    Try it and see.


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139