I'd like Apache to terminate my perl script after 1 minute if it doesn't complete naturally. Is there a setting in Apache (or other server software) to do this?
We have an old VB6 application, written in the UK, which we want to run on a client's server in Canada. The application must have some hard-coded date formats in it somewhere, as it's misinterpreting dates, eg, 6th April is getting recorded as 4th June. I know I could change the user's date format, but this would affect all applications. Is it possible, perhaps with some sort of wrapper script, to set specific regional settings for this single application?
In a bug post I sent to the chrome developers, a developer sent me the message:
We don't see this difference in the
new builds of Chrome. Checked in
6.0.437.2 dev. Can you check and confirm again?
I'm wondering how can I run the latest (development) version of Chrome for Mac OS X?
Ideally I don't want to build the project.
I have some autohotkey settings for my joystick that are set to work everywhere.
However, there are twp programs where I don't want autohotkeys to remap the joystick.
How can I disable autohotkeys remapping for these programs in the script, so that I don't have to manually do it?
Can anyone tell me how to access the Java Applet Console in Chromium for Linux?
I assumed there would be a Java application packaged with the JRE that would give me access through the command line, but I can't find reference to anything.
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.2) (ArchLinux-6.b24_1.11.2-1-i686)
OpenJDK Client VM (build 20.0-b12, mixed mode)
I'm running apache2/passenger2.0.3 (ubuntu 9.10 packages).
I can start up Webrick in the rails folder and run the app perfectly as I do on my development box with
script/server
Why then does apache/passenger fail to open the database, throwing a 500 and putting the following in the log?
Status: 500 Internal Server Error
could not open database: unable to open database file
/usr/lib/ruby/1.8/sqlite3/errors.rb:62:in `check'...
I was listening to some older mp3s today and I released that some of my songs have pops and cracks in them. I assume this means that the file has some bad blocks.
Is there software/script/etc that I can run on my entire library and find the music with these artifacts?
Thanks!
Hi,
Im relatively new to Ubuntu, Im wondering how easy it is to write what I think is called a shell script to make tasks a little easier.
For example I frequently connect to a server - ssh -p 123 [email protected]
Can and how could I shorten this to a shorter command like "mysite" or "connect mysite"
Thanks.
I'd like to read small text file, located at: /sys/kernel/debug/vgaswitcheroo/switch without root permissions. It contains information about graphic cards (dedicated ATI Radeon and integrated Intel HD3000).
I wrote a simple script displaying infomation I need, but it works only with root privileges. I already tried changing file & folder permissions, but when I restart my computer, the problem remains. Is it possible to permanently change that file permissions or owner?
We always try to be clever and script everything that we find repetitive but not everything can be automated - what have you found in your career to be just a massive pain?
I'll give you mine - building Netware version 2.xx on 5.25" disks with multiple NICs - this often took HOURS of swapping disks, pacing around, swapping disks, more pacing etc. Then finally it would hopefully work - if you'd not set the IRQs/DMAs right you had to start again, wow I loved version 3 which didn't need all that.
What about you?
I have a bunch of ghost image files to edit. These are Windows OS images, and I need to add a few files into the them.
I could have used Ghost Explorer (GhostExp.exe) to modify them one by one, but it would be nicer to have a command line utility to do the trick, so that I can write a script to do this automatically for me.
Any suggestions?
I'm using Ubuntu 10.04 beta 1. When I try to update & upgrade I get the following error:
Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...
/etc/environment: line 4: LC-ALL=en_US.UTF-8: command not found
dpkg: error processing install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
Does anyone know how to fix this?
Thanks
Hi all,
currently my logrotate configuration adds a single number after the rotated log file:
mylogfile.log is rotated to mylogfile.log.1
I would like to change the extension to mylogfile.log.Current date
does anyone know a way to do this?
my log rotate code is :-
/usr/local/jboss/jboss-3.2.7-ND1/server/default/log/consolelog.log {
copytruncate
rotate 1
missingok
notifempty
}
Currently am renaming the rotated file with script.is there any option to change the extension of log rotate default configuration. Please help me
I have 2 printers.
HP Deskjet F2235 - designated scanner (has printing issues)
Brother HL-2040 - designated printer (doesn't have a scanner)
Just by using those two both connected to the same computer, is there a way to perform a photocopy operation by scanning via the designated scanner then immediately it being printed from the designated printer?
Obviously you could save the scanned files then print them, but short of making a script or manually doing this, is there a faster automatic way through settings or third-party software?
It seems that Cron doesn't support a seconds interval. What is the easiest way to run a cli script (php) every 15 seconds? Is there a cron tool that works specifically with seconds (then I could use Cron to call it every minute)?
I have just installed CENTOS 6 on an internal network with no Internet Access.
Not very familiar with LINUX/CENTOS, I managed to get httpd service started and I believe PHP wasn't installed.
As the machine is not connected to the Internet, it will not be able to use YUM directly. How do I go about installing PHP and their dependencies, or the only way is to download the source codes and build it on my own?
I'm setting up a custom 403.4 handler so that non-SSL requests to my site are redirected to a different URL - and what I'd like to do is to include the script path and query string in the redirect, so that a user who requests http://www.site.com/foo?bar=1 will be redirected to https://www.site.com/foo?bar=1
I know something similar is possible when configuring a top-level site redirect, using the $S, $Q, %v tokens referred to in this IIS reference page - but this syntax doesn't seem to work when configuring a custom error redirect.
I am planning to create mysql accounts for each of my web devs and build their own databases. I need these devs to have accounts to access their own phpmyadmin where they can manipulate their own sets of databases.
I am kind of new to web services deployment, so should this setup be configured in phpmyadmin or in mysql?
Will this kind of deployment need web management like cpanel?
I hope you can enlighten me with this.
I've got some generic RAID controller built into my motherboard and I want to build either a RAID 5 or RAID 0+1 array. What are the disadvantages of running unmatched drives? Like 4 different brand 7200rpm 500gb drives?
This would determine whether I look around for whatever used drives I could get my hands on vs. paying extra for a set of matched identical drives.
A question about upstart.
I understand the restart command does a stop and restart of the process.
What happens if the process will not stop and check for the signals for a long time (20min or 2h)?
Will it still restart after such a long time ?
Example my-process:
until stop_signal_received
work for 2h
end
So the script will check for stop signals every 2 hours.
$sudo restart my-process
Will the process restart after 2 hours or not?
I want to add usb network support to a real-time Linux distribution we're using at work.
USB devices are recognized, but when connecting a usb network adapter no network interface is created.
From what I've read this requires recompiling the kernel build with usbnet support enabled. I don't mind doing this, but the problem is that I can't seem to find any instructions on how to do this. Can anyone point me in the right direction?
I have to perform various task such as restarting process, monitor process state check disk space, log monitoring on Window server 2003 machine. For this i am using remote desktop access which is very slow. Is there any alternate (Tool or Framework) for windows server where i can execute my script on my machine and the required task will be performed on the remote machine in somewhat interactive manner (like putty in linux)
I have one domain on my VPS which I wanted to run a script a few hundred times on to simulate users, so I put a few Firefox tab on refresh every 1 second.
Now that domain is dead, it just gives me a 504 every time I try to go to it, even though I restarted NGINX, PHP and I even shut the server on and off.
All of my other sites on that VPS are Ok and running perfectly, just this one where I tried the reloading on.
What can I do from here?
My question is:
why if I run some file with name aliases for example with content such as:
alias lsa="ls -a"
directly:
$ ./aliases
it don't create the alias (may be only in script context).
But if I run it with command "source":
$ source aliases
it do the work? I mean after execution the alias "lsa" existing in context of command shell?
"man source" give: "No manual entry for source", and in google I just found that it runs Tcl, but why Tcl influence shell context and bush not?
welcome,
I have problem with .bat script on windows.
I use wget to download html stats page, now i have to find (in html source) url like this
http://www.example.com/stats/367895.jpeg
The 367895 is a random generated number.
and download chart jpeg.
I think i can't do this in .bat, Do You know any external command line application what i could trigger from .bat and show in output finded url ?
Regards