Is there a way to get DVD region code from command line (linux/ubuntu 9.10)?
I want to script this action and store the region code (and other data about DVD) in a log.
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?
Hi guys,
This is a bit of a silly question, how do I run Thunderbird 3 which I downloaded? Well, I can get it to run by executing the 'thunderbird' shell script file. However that creates a terminal windows aswell and will close Thunderbird if it is closed.
How do I get it to open without the terminal?
Thanks.
A friend of mine says that a site I frequent was reported by his antivirus software to be infected with a trojan. I can't confirm this because I'm on a Mac, and he's running PC so nothing happens on my end.
I'm wondering if there's a web site that I could use to check the site for infection or malicious script.
I have ssh access to many servers where I have no root privileges. Do you know of any version control utility that can work with remote ssh repositories whichout installing anything on the remote server?
I have tried a bare git repository folder, but it seems to demand some script/binary/installation on the server. I also dont like git because it is not very portable. The portable versions are made of too many files
Consider we hosting. Thousands of sites hosted, pile of pages, domains, servers etc etc..
Now one evil page makes curl request to external site.
How to find out which script that was.
I need to find a program to convert a Windows-1250 encoded file to utf8. It needs to be a standalone program (not a python script) and it needs to run on windows (without install). If I can make the conversion using the commandline that would be perfect.
Yes I know notepad can do that but this is meant to be automated.
Hi,
Win 2003 SBS has started requiring password for a domain user. It's weird because it doesn't requires it every time...sometimes it will work (automatic shares through logon script) and sometimes it won't...lets the user in after 2-3 tries (wrong password errors) and the loads the share with the same pass...
Thanks!
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?
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?
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'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 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?
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
I want to have a script that does the following thing:
connect to a remote windows machine
get the list of applications that are currently open on the machine, e.g exactly what I would get in the "applications" tab in the task manager, and print it.
Is it possible to do that in batch?
If not, what other options do I have?
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?
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?
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?
Here's what I'd like to do:
If a user goes to www.example.com/thislocation, I'd like to redirect to a particular script and give it "thislocation" as a parameter.
So if a user navigated to www.example.com/thislocation, I'd like to redirect to www.example.com/cgi-bin/test.pl?parameter=thislocation, and similarily, if the user navigated to www.example.com/thatlocation, I'd like to redirect to www.example.com/cgi-bin/test.pl?parameter=thatlocation.
Is this possible with Apache?
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.
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?
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?
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
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 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!