Recent Notes
Displaying keyword search results 1 - 2
Created by Dr. Xi on September 29, 2008 23:21:38
Last update: January 16, 2010 23:36:05
Create a startup script for inetd
Copy /etc/init.d/skeleton to /etc/init.d/inetd . Change the top section of the script to read:
PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="In...
Now inetd can be stopped/started/restarted like this:
sudo /etc/init.d/inetd stop
sudo /etc/init....
Add links to rc*.d
$ sudo update-rc.d inetd defaults
Adding sy...
If you no longer need to start inetd at boot up:
$ sudo update-rc.d -f inetd remove
update-r...
This would remove the links from the start up sequence but leave /etc/init.d/inetd in place.
Contents of /etc/init.d/skeleton :
#! /bin/sh
### BEGIN INIT INFO
# Provide...
Created by Dr. Xi on July 29, 2009 20:58:51
Last update: July 29, 2009 20:58:51
You need to set several system variables in order to run a SQL script to update a column with JavaScript code:
SQLT: set sqlt off
The default SQLT (SQL terminator) is semicolon, which is used in JavaScript as statement terminator.
Blank lines: set sqlblanklines on
Blank lines are abundant in JavaScript. Don't let them terminate your SQL statement
No variable substitution: set define off
The ampersand is a JavaScript operator, which is also used by SQL*Plus for variable substitution. You should turn variable substitution off to preserve the JavaScript code.
Finally, use slash (/) on a blank line to terminate your SQL code. Example:
UPDATE events set JSCODE = 'var a = 1;
var ...