startupscript

Startup program and libocci.so.11.1: cannot open shared object file: No such file or directory

孤街醉人 提交于 2019-12-24 09:52:48
问题 please any one save my time .my application is written in c++ I was try to startup on boot in ubuntu linux,but when the program try to start it log error like:- error while loading shared libraries: libocci.so.11.1: cannot open shared object file: No such file or directory my program use oracle api:- my start service script which is written in /etc/init.d/sistartup:- #!/bin/sh # chkconfig: 345 99 10 OWNER=aki case "$1" in 'start') su $OWNER -c "/home/aki/sis_script/startsis.sh >> /home/aki

$PYTHONSTARTUP with python 2.7 and python 3.2

可紊 提交于 2019-12-22 03:08:11
问题 I finally started using python 3 alongside python 2.7 on Linux. I setup my python shell using a startup-script defined by $PYTHONSTARTUP. Due to incompatibilities I am unable to use the same script for both versions. What is the easiest way to get one script for python 2.7, and another for python 3.2? 回答1: If you use Python 2 for some projects and Python 3 for others, then change the environment variable when you change projects. Or, have your startup script look like this: import sys if sys

.net - How do you Register a startup script?

大憨熊 提交于 2019-12-21 12:17:49
问题 I have limited experience with .net. My app throws an error this.dateTimeFormat is undefined which I tracked down to a known ajax bug. The workaround posted said to: "Register the following as a startup script:" Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value) { if (!this._upperAbbrMonths) { this._upperAbbrMonths = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames); } return Array.indexOf(this._upperAbbrMonths, this._toUpper(value)); }; So how do I do this? Do I add

How do I add a python script to the startup registry?

江枫思渺然 提交于 2019-12-21 04:57:22
问题 I'm trying to make my python script run upon startup but I get the error message windowserror access denied, but I should be able to make programs start upon boot because teamviewer ( a third-party program I downloaded ) runs every time I restart my computer so I know that I should be able to make my program run at startup (I might be doing something different though, so if you could shed some light on what teamviewer is doing differently to get its script to run at startup that would be

How do I fix “Error: MONGO_URL must be set in environment” on ubuntu using forever and startup script?

夙愿已清 提交于 2019-12-06 05:10:31
问题 I just deployed a meteor js app on an EC2 ubuntu server. I installed forever and added the following startup script to /etc/init/meteor.conf start on (local-filesystems) stop on shutdown script cd /home/ubuntu export PORT=80 MONGO_URL=mongodb://localhost27017/parties ROOT_URL=http://ec2-54-235-1-185.compute-1.amazonaws.com exec forever start bundle/main.js end script When I go to start my app using: sudo service meteor start , it reads: meteor start/running, process 12481 ubuntu@ip-10-98-57

$PYTHONSTARTUP with python 2.7 and python 3.2

五迷三道 提交于 2019-12-05 00:24:49
I finally started using python 3 alongside python 2.7 on Linux. I setup my python shell using a startup-script defined by $PYTHONSTARTUP. Due to incompatibilities I am unable to use the same script for both versions. What is the easiest way to get one script for python 2.7, and another for python 3.2? Ned Batchelder If you use Python 2 for some projects and Python 3 for others, then change the environment variable when you change projects. Or, have your startup script look like this: import sys if sys.version_info[0] == 2: import startup2 else: import startup3 and split your real startup code

How do I fix “Error: MONGO_URL must be set in environment” on ubuntu using forever and startup script?

[亡魂溺海] 提交于 2019-12-04 09:06:27
I just deployed a meteor js app on an EC2 ubuntu server. I installed forever and added the following startup script to /etc/init/meteor.conf start on (local-filesystems) stop on shutdown script cd /home/ubuntu export PORT=80 MONGO_URL=mongodb://localhost27017/parties ROOT_URL=http://ec2-54-235-1-185.compute-1.amazonaws.com exec forever start bundle/main.js end script When I go to start my app using: sudo service meteor start , it reads: meteor start/running, process 12481 ubuntu@ip-10-98-57-161:~$ But when I enter the public DNS in my browser, nothing. So I then type the command forever list

How do I add a python script to the startup registry?

泪湿孤枕 提交于 2019-12-03 14:28:51
I'm trying to make my python script run upon startup but I get the error message windowserror access denied, but I should be able to make programs start upon boot because teamviewer ( a third-party program I downloaded ) runs every time I restart my computer so I know that I should be able to make my program run at startup (I might be doing something different though, so if you could shed some light on what teamviewer is doing differently to get its script to run at startup that would be helpful). Here is my script import _winreg, webbrowser key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER,

how to set mogodb in upstart service with authentication

回眸只為那壹抹淺笑 提交于 2019-11-30 21:31:49
问题 I have created a superuser tom in mongodb v2.6.11 with username & password and now i want to add this at ubuntu startup service on searching came to know that i have to edit below file this is how my /etc/init/mongod.conf looks pre-start script mkdir -p /var/lib/mongodb/ mkdir -p /var/log/mongodb/ end script start on runlevel [2345] stop on runlevel [06] script ENABLE_MONGOD="yes" CONF=/etc/mongod.conf DAEMON=/usr/bin/mongod DAEMONUSER=${DAEMONUSER:-mongodb} if [ -f /etc/default/mongod ];

Start up script for node.js repl

瘦欲@ 提交于 2019-11-30 06:22:55
Is there a way configure node.js's repl? I want to require jquery and underscore automatically whenever the repl starts. Is there a file (noderc?) that node.js loads when it starts the repl? The equivalent in Python is to edit ~/.ipython/ipy_user_conf.py with: import_mod('sys os datetime re itertools functools') I don't know of any such configuration file, but if you want to have modules foo and bar be available in a REPL, you can create a file myrepl.js containing: var myrepl = require("repl").start(); ["foo", "bar"].forEach(function(modName){ myrepl.context[modName] = require(modName); });