Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on tcl? in the Shared & Semi-Dedicated forum
how does tcl work? If I have a tcl script and I want to run it, what do I do? ...

  1. #1
    JPC Senior Member
    Join Date
    Jun 2003
    Location
    Michigan
    Posts
    61

    tcl?

    how does tcl work? If I have a tcl script and I want to run it, what do I do?

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I couldn't find a tcl binary on my server, but a tcl script would work the same as a perl script cgi. First, you'd need to know the location of tcl on your server. You can find this by typing

    which tcl

    at an SSH prompt. Once you get that, you add it to the first line of the script like

    #!/path/to/tcl

    Then upload your script and chmod it to 755 and you should be good to go. If you can't find a tcl binary on your server, ask support to install it. I can't see why it would be a problem.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    Just Walking...
    Join Date
    Oct 2002
    Location
    England
    Posts
    436
    Not that it answers your question, but what exactly would the script you want to run actually do?

    The most common tcl prog that people want to run from their account is an egg drop (or so it seems to me). If it is an egg drop or other IRC bot it is probably not allowed by the Jaguar as they use a large amount of resources.

    Of course if it's not an egg drop then by all means ignore me completely

  4. #4
    JPC Senior Member
    Join Date
    Jun 2003
    Location
    Michigan
    Posts
    61
    I appreciate both your responses. The script is indeed an eggdrp script, but since I have never dealt with these before, I was not aware of the issues you raise. I certainly have no desire to hog server resources, so I would need to find a way to make sure that didn't happen.

    To Jason, once I have done what you say, how do I actually run the script? eg - what do I type at the command line - you'll have to excuse my complete ignorance, but I'm a scripter (PHP) not a 'programmer' so I'm a little out of my league!

  5. #5
    Wookiee JPC-Les's Avatar
    Join Date
    May 2002
    Location
    The Exogorths belly
    Posts
    1,265
    Hi Craig,
    Yes G.Bloke is correct and eggdrop is indeed not allowed on the servers. If you have more questions please recheck the AUP and if you are unsure please do not hesitate to submit a ticket or email sales@jaguarpcl.com.
    (pm) | (email) Les, Chief Operations Officer

    Need a Manager?
    (pm) | (email) David, Customer Service Manager
    (pm) | (email) Masood, Chief Technical Officer

    Helpful Links
    Knowledge Base | Network Status | Current Specials

  6. #6
    JPC Senior Member
    Join Date
    Jun 2003
    Location
    Michigan
    Posts
    61
    OK - no bots. Thanks.

  7. #7
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I thought you were talking about a cgi script, in which case you'd access it through a web browser instead of from the command line, but it doesn't matter because the steps I've outlined are still the same (except that you might want to chmod it to 700 if you don't want other users to be able to run it).

    From the command line you just type the path to the file, either absolute or relative. If it is in the current directory, you type ./scriptname. If its one directory up, ../scriptname. Or you can type the whole path /home/username/scriptname, for example.

    But since Les just confirmed that you can't run the script on these servers, this probably isn't all that useful anymore...

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

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