|
Java Script - CRON -
ASP - TELNET - and Misc.
What is JavaScript?
Javascript can be thought of as an extension to HTML which allows
authors to incorporate some functionality in their web pages. So now,
whenever the user presses the SUBMIT button, you don't necessarily have
to invoke a cgi script to do the processing. If it is something simple,
you can do the processing locally using Javascript and give back the
results.
Using Java Servlets
If you need to enable Java Servlets for your site, it is as easy as a click of a button. You will need to have the
Package B or C to have this icon in your administration suite.
When you are ready to enable them, click that icon and then click on "install". It will create a directory called "servlets" in your www directory so if you have one there already, you will need to rename it first.
Give it ten minutes and then you should be able to use your servlets!
To use Java Servlets with your domain, simply copy the compiled Java Servlet code (the file with the .class extension) into your /servlets directory.
http://your_domain_name.com/servlets/YourServlet
NOTE: the example above assumes your compiled servlet is named YourServlet.class. When you access your servlet via the web, however, it is important not to include the .class extension.
Java Applet help
Here's what to do to get your Java Applets to work :).
1. FTP your .class file into the WWW folder
2. Add your applet code to an html file - such as this code:
<applet code="Lake.class" width=251 height=500>
<param name="image" value="water.gif">
</applet>
3. upload your image file
4. Be sure that you make your width and height for the applet large enough to take care of the effect and the graphic. You might have to play with this though to get the right effect :).
5. Java Applets aren't the same as servlets, so you can do this with your
Matthew Package :).
That's it!
Here is an article about how to do a
cron job.
I have a cron job that needs to be set up to run a file every morning at
4:30 AM Eastern Standard Time for one of my clients. The file that needs
to run is /home/$user/$domain-www/script_name
At the SSH prompt:
# crontab -e
*/5 * * * * /home/$user/$domain-www/script_name
:wq
To view the cron you just created:
# crontab -l
*/5 * * * * /home/$user/$domain-www/script_name
This will run a cron every 5 minutes.
---------------------------------------------------
Explanation of field values:
* * * * * /home/$user/$domain-www/script_name
1 2 3 4 5 path to script
1 -- minute 00 - 59
2 -- hour of day 00 - 23(midnight is 00)
3 -- day of month 01 - 31
4 -- month of year 01 - 12
5 -- day of week 01 - 07
----------------------------------------------------
This will run the cron every 15 minutes:
05,20,35,50 * * * * /home/$user/$domain-www/script_name
1 2 3 4 5 path to script
--->Note that you need double-digits if there is no * or /
--------------------------------------------------------------------
This will run the cron 4 times a day - midnight, 6AM, Noon, and 6PM:
* 00,06,12,18 * * * /home/$user/$domain-www/script_name
1 2 3 4 5 path to script
Can I run ASP on your
server?
YES! - please let us know that you need to be moved to the ASP server. We'll need your domain
name, username and password. Be sure your entire site is backed up, along
with any databases and a list of all domain email addresses in use.
Download any email from the server that may be there.
1. this is ChiliSoft! ASP (ASP for linux http://www.chilisoft.com) and
does not have the full functionality of Windows ASP. One particular
feature not supported is the ability to in Front Page to create a database
driven site (based on Access) this feature will not work with ChiliSoft.
2. Our support is "limited" at the moment as it's a new product that we
offer.
3. Connection to MySQL if anyone needs using VBScript is:
<%@ LANGUAGE="VBSCRIPT" %>
<%
strConnection =
"driver={MySQL};server=localhost;uid=YOUR_ID;pwd=YOUR_PWD;database=YOUR_DB"
Set adoDataConn = Server.CreateObject("ADODB.Connection")
adoDataConn.Open strConnection
strQuery = "SELECT * FROM your_table;"
Set RS = adoDataConn.Execute(strQuery)
%>
Am I allowed telnet access to my site?
I would like to use C++ for my cgi-bins and I will need to compile my
final binaries on the target machine.
A: What we offer is SSH access instead of Telnet. You will need to
connect with something like secure CRT that you can get at http://vandyke.com
===========================
JSP is not available on the servers. However we do have java servlets.
Remote access to mysql and ODBC connection or a JDBC is possible. In either case you will need to configure the connection and provide us with a static IP which will enable us to prepare the server for your connection.
|