how does tcl work? If I have a tcl script and I want to run it, what do I do?
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? ...
how does tcl work? If I have a tcl script and I want to run it, what do I do?
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
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![]()
![]()
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!
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
OK - no bots. Thanks.
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
Copyright © 2011 JaguarPC.com
Bookmarks