$ cat read.sh
#!bin/bash
// how can I read the columnwise data to awk-script?
awk '{sum+=$1} END {print sum}' read
$ cat data
1
2
3
4
5
$ . ./read.sh <data
awk: cmd. line:1: fatal: cannot open file `read' for reading (No such file or directory)
Let's say I want to use this API: http://hiveminder.com/help/reference/API.html
The instructions walk through its use via. the curl command line tool, which I'm unfamiliar with. I want to access this API through a simple script on my own page. What are the steps I need to do this?
The subject line says it all. I'd also like to do this using pipes.
I figured that I could use Get-ChildItem, Measure-Object and Where-Object, but Measure-Object doesn't like dates.
Should I have a script block which loops through each item returned from Get-ChildItem and does a comparison to see if it's the most recent? I thought that there should be a handy PS cmdlet for that.
What is the max time do you think is acceptable for a web script (PHP for example) to execute before it starts to become an annoyance for the user (on average)? I always thought that if the user has to wait more than 1 second for the page to load (this of course after images and css have been cached..this rule really only applies for subsequent requests) they would start to get annoyed.
I am very new in bash and never coded in before but this task is stuck so need to get rid of it .
I need to make bash script to make a single compressed file with several dirs.
Like -
/home/code/bots/
/var/config/
.
.
.
/var/system/
and all will be compressed to single file /var/file/bkup.[zip][tar.gz]
Thanks in advance
Findbugs script in build.xml:
Findbugs checks Coding...
Findbugs checks Coding...
genetate a findbugs_result.xml.
Download Findbugs plugin for hudson.
Enter findbugs_result.xml path for hudson.
But hudson can not display on main interface. why?
I want to display script errors in a popup alert instead of showing them in the browser console.
window.onerror = function() {
var message = /* get error messages and put them here */;
alert(message);
return true;
};
I am looking for a free for commercial use classfields/ad portal script that would work either under apache + postgresql/mysql or under windows (asp.net + sql server express).
Could you recommend something?
Maybe I should use joomla with an extension like adsManager?
I have created a mysql database using work brench. It has about 20 tables. I cannot figure out how to run scripts on the database.
Basically, I want to make a database creation script which will allow me to create my database on any other mysql server.
i have a script in jquery (that grabs a value from a select field and transfers it to an input field) that i need to do in mootools...i love jquery... mootools i dont know...
not having much luck...
here is the code:
- Select an Article -Acetaia LeonardiEsperidiaFrescobaldi LaudemioPrimitiviziaPrincipato LucedioRustichella d'Abruzzo
--
I want to write a php script that I can use from the command line. I want it to prompt and accept input for a few items, and then spit out some results. I want to do this in php, because all my classes and libraries are in php, and I just want to make a simple command line interface to a few things.
The prompting and accepting repeated command line inputs is the part that's tripping me up. How do I do this?
can we get the multiple values from a select tag through Ajax script in controller in asp.net MVC?
I Have tried for Single Value that I have done by .val Function..
But not for Multiple Values
Any suggestion Please Help
I had a script which sends sms alerts everyday. I want it to send automatically send sms by fetching message from database. Can I do it without cron. Is there any other solution. Plz help
Hi,
Any one help to to get the extract value from the java script date time utc format. I am using a C# web method which is returning a date and i have to set that date with Timezone.
Thanks
I have stored a bulk of objects in an ArrayList and I have set that in the request. Now I want to retrive the values in the Arraylist from my java script. Please help me with the solution
I am working on a project where I am generating some code/scripts (specifically Perl scripts) via Java and Freemarker. I have it working for now, but was wondering if there was some way to change the default variable delimiter ($) in Freemarker?
Or is there a different Java template engine that would use a variable delimiter more suitable for generating a Perl script?
I have daemon script written in Perl that checks a database tables for rows, pulls them in one by one, sends the contents via HTTP post to another service, then logs the result and repeats (only a single child). When there are rows present, the first one is posted and logged immediately, but every subsequent one is delayed for around 20 seconds. There are no sleep()'s running, and I can't find any other obvious delays. Any ideas?
I want to run my ruby script x times a day (the number might change) on my linux box. What would be the best way to do so if I do not want it to happen at the same time? I want the time (hour and minute) to be random
How do I format a date in a korn shell script to DD-MON-YYYY?
I have tried the following:
date '+%d-%h-%Y'
It returns 04-Nov-2009 I need for the Nov to be NOV (all caps). Can this be done with the date utility?