What is the best way to prepare the log files before inserting their values in the MYSQL database using
LOAD DATA INFILE '/tmp/someFile.txt'
INTO TABLE
How can I make sure and make the data log file ready to be read by such command ? Someone told me by scripting (using sed,grep,cat,sub ...) .. how can I do that or what are the to...
Hi
i have the output of cat /proc/loadavg and
/proc/meminfo MemFree: 1191220 kB
i need a to know who will i get a script to get then added in a logfile every 5 mins.
eg: CPU; Mem;
10.0; 1191220
and so on so the next entry will be below that
eg: CPU; Mem
10.0; 1191220
5.0; 2229882
Thanks in advance
...
Title just about says it all.
Are there any good scriptable installer/uninstaller systems made for Java projects? Ideally a system that interfaces well with Ant build scripts.
Thanks!
...
Am fairly new to using MySQL and a total novice at Perl but am trying to hack someone elses script to help me out. I got the script from here. It looks great so far but it fails as the tables have some foreign key check going on. I could go through phpmyadmin and try and delete them all one by one but this takes for ever and is my thi...
Hi!
I am planning a turn based game (a sort of board game), and the backend will probably be done in Erlang. The game logic part seems to be a fit for a hierarchical state machine, but I'm not sure about how to implement that in Erlang.
Maybe I can spawn a separate process with each child fsm, not sure if this would work.
Another opti...
Hi,
I need help on redirect of php scripts. The problem is: I have a page for example www.domain.com/redirect.php?id=34 that redirects to another page, domain2.com/product.php?id=2. I need to create a script that allow me to know the URL of the redirection (domain2.com/product.php?id=2) just by accessing the redirector (www.domain.com/r...
I have a bunch of scripts (which can't be modified) written on Windows. Windows allows relative paths in its #! commands. We are trying to run these scripts on Unix but Bash only seems to respect absolute paths in its #! directives. I've looked around but haven't been able to locate an option in Bash or a program designed to replace and ...
Hi,
I have this simple script:
$files = dir .\configs | ? { !$_.PSIsContainer }
foreach($file in $files)
{
try
{
.\MyApp.exe -ErrorAction Stop $file
}
catch
{
write-host "!!!!!!!!!!!!error!!!!!!!!!!!!!!"
continue
}
}
The problem is that when
.\MyApp.exe -ErrorAction Stop $file
...
Hi,
Basically the issue im having is I have a custom theme, and I need to use $scripts to call the analytics code at the top (the link tracking settings) however this also loads loads of other cr*p js files I dont need or want.
All I want is the analytics stuff the module places in $scripts.
So can I somehow either:
A) Load only the ...
I want to have a script of indexes that I can append to and rerun as new tables are added to my schema. For this reason, I want to skip creating indexes that already exist, but I have been unable to find a clean way to detect the index is already there. What I want to do is something like this:
IF OBJECT_ID(N'[dbo].[Users].[IDX_LastName...
Is AutoIt a programming language? What's the difference between a programming language and a scripting language.
AutoIt seems quite complex. There are a lot of things you can do in it. The code can even be compiled into an .exe file. So I don't understand why it wouldn't be considered a programming language.
...
I can run this command fine, with the output I want:
ifconfig eth0 | grep HWaddr | awk '{print $5}'
However, when I set the command to a variable, and print the variable, I get an error:
CASS_INTERNAL=`ifconfig eth0 | grep HWaddr | awk '{print \$5}'`
$CASS_INTERNAL
my internal xxx ip: command not found
The weird thing - my intern...
I have an IIS 7 machine with multiple apps/vdirs on the single default
web site. I would like to set two of them with this authentication:
anonymous - off
impersonation - on
forms auth - off
windows auth - on
I would like to do this with appcmd.exe but cannot seem to get the
syntax down right. Has anyone had luck with this?
Thanks.
...
I'm using net-ssh to iterate over a couple of hosts in a loop. This bit of code will throw an error if the username entered is incorrect.
Net::SSH.start(host, user) do |ssh|
out = ssh.exec!(exec)
puts out ...
Hi
I'm trying to script my OpenOffice document (Writer in my case) to do some simple things with widgets. Namely I'd like to copy text from widget to widget. For this I want to get one component and than get text from it.
I've been trying to do sth like this:
document = ThisComponent.CurrentController.Frame
oDocument = ThisCo...
Hi
I have a properties file, which, when unmodified has the following line:
worker.list=
I would like to use sed to append to that line a value so that after sed has run, the line in the file reads:
worker.list=test
But, when I run the script a second time, I want sed to pick up that a value has already been added, and thus adds a...
I'm using the PowerShell script below to set anonymous user identity and authentication methods on an IIS6 server. The script seems to work at first, but if I issue an iisreset after running it the values revert to the old ones! How do I persist them?
$server = "localhost"
$siteName = "www.mysite.com"
$iis = [ADSI]"IIS://$server/W3SV...
I use expect for running test scripts.
Tests return success/failure through exit code. But expect return equivalent exit code.
How to make expect return proper exit status?
My tests are sql scripts run with psql (postgresql command processor).
Since psql doesn't allow to specify database password as a command line parameter, expect scri...
I've been using this script
http://jquery.malsup.com/cycle/
And using the "Fade" transition. (Top row of the page on the right.) I need to edit the script so that the image fades all the way out to a white background and the next image fades all the way in. Right now they're sort of fading into each other. I've looked over the page and...
It is really painfull to get all code form TFS whenever you make a build using NANT.
Is there any settings in ccnet.config which will only take the files which are changed form last time which can speed up the process.
...