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.
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?
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!
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.
Is it possible to export all the data inside openldap for example using ldapsearch or some other tool to a (ldif?) file and then import everything on another server and put this in a script that would be run every day. So that I could use the other one as a backup when the first/master server is not available?
I have full access to the first/master server, but I can't modify it's configuration so I think I can't set up replication.
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'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'...
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 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
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 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?
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.
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 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'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?
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?
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
Is it possible to create a console using the SPI device (/dev/spidev0.0) in a similar way that you would create a serial console, or if not is this possible ??
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=38400 --unit=0 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,38400n8 ipv6.disable=1"
Or would it be possible to redirect input and output to a script or .c binary and have that handle the SPI ?
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 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!
Does anyone know if it's possible (or know of an existing vim script or plugin) that can create a "status bar" that shows the name of the current class and method (or function) I'm editing?
I'm imagining that it would plug into the syntax parser for the filetype of the current buffer, and display a breadcrumb trail to show you what you're currently editing. I don't know vimscript well enough to suggest any more than that, but if there aren't any good solutions already, I may begin to hack on one, so suggestions as to where to start are welcome, too!
ive got a printer in my Active directory but its standard set to double sided printing but the problem is the printer doesnt support that so you have to switch it manualy
Ive found the setting for the user but it is automatically set to the original value if you reboot
Where can i find the setting in the active directory ?
the printer is a :HP Color LaserJet CP1510 Series PCL 6
(its possible that there is a script for this but i dont know where to look)
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'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'm often deep inside a directory tree, moving upwards and downwards to perform various tasks. Is there anything more efficient than going 'cd ../../../..'?
I was thinking something along the lines of this: If I'm in /foo/bar/baz/qux/quux/corge/grault and want to go to /foo/bar/baz, I want to do something like 'cdto baz'. I can write some bash script for this, but I'd first like to know if it already exists in some form.