Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

shell

1
vote
1 answer
65 views

Rotate apache logs based on file size in Ubuntu

I have three sites on my server and their logs (Apache logs) are in their root folder not in /var/log. I need a script that rotates the access_log…
asked June 25, 2011 2:04 am CDT
hd
-2
votes
0 answers
29 views

How to achieve this algorithm?

Itemsets: { {N1:2}, {N2:4}, {N3:132}, {N4:6} ...... {NN:1} } call function(count, sum) { ... return array }…
asked June 21, 2011 5:19 am CDT
user808186
-2
votes
2 answers
33 views

Execute a PHP file with Cron ONLY

I've got a PHP script that needs to be executed once a day, at 3:05am Pacific time. I've currently got the script in the root of my site (as in,…
asked June 20, 2011 6:26 pm CDT
HaLo2FrEeEk
1
vote
2 answers
31 views

CouchDb: How to delete documents older > 6 month?

I have the problem that I like to "automagically" delete documents that are at least 6 month old. My CouchDb instance runs on a linux server, is…
asked June 20, 2011 7:46 am CDT
Robert Heine
-1
votes
1 answers
30 views

Perform math on one-line ruby script gsub regex captures

I'm trying to fix a subtitles (.srt) text file that has some incorrect data with a one-line ruby script. The file looks like this: 53 00:03:52,835…
asked June 19, 2011 5:13 pm CDT
igagen
0
votes
2 answers
30 views

Parse linux comand with regex.

Can anybody help me how to parse df-Bk linux command output with c# regex. Thank in advance.
asked June 14, 2011 6:34 am CDT
user629926
0
votes
2 answers
21 views

Rename a file name with regex

I have a set of files (ABC.AM. . .20*.*) in a folder eg : ABC.AM.00.13.201106.00014 , and I need to rename this to ABC.AM.00.13.201106.01014. I am…
asked June 14, 2011 6:02 am CDT
nachikethas
1
vote
1 answer
43 views

Apache Cron Back Up To Github

I've got Apache cron making a back up tar file of my Codeigniter application and placing it in /backup of the server. I'd like to send this to…
asked June 13, 2011 6:56 am CDT
logic-unit
0
votes
1 answers
45 views

How to do a mongodb query in a mongodb function?

I'm trying to write a mongo script from the mongo shell, but I'm having a small problem. I'll let the code explain itself. var shops =…
asked June 9, 2011 8:08 pm CDT
conman
-3
votes
0 answers
26 views

Postfix evaluator not working

for some reason, when I execute this program with the following expression 12 12 * 66 + it returns an invalid and negative answer -46 . I'm curious…
asked June 8, 2011 10:14 pm CDT
tekknolagi
0
votes
1 answer
41 views

Regex to replace last occurrence of a string in each line

I am using sed -e 's/\(.*\)ABC/\1DEF/' myfile to replace the last occurrence of ABC with DEF in a file. I want to modify it to replace the last…
asked June 7, 2011 3:39 pm CDT
michael
0
votes
2 answers
39 views

Encrypt Mysql password on shell script

How to write the password to result_p.txt in encrypted form and how retrieve it back as well? echo "Please enter the mysql root password : " stty…
asked June 6, 2011 12:16 am CDT
Arunjith
0
votes
3 answers
26 views

How can i make a code run automatically every 30 mins in shell script or PHP?

I have a code which I want to run every 30mins. Since it is not possible to do it manually over 30 days I wanted to make it an automated process.…
asked June 1, 2011 3:35 pm CDT
vincy
0
votes
2 answers
29 views

Is there a way to disable my.cnf vertical setting from a shell script running mysql?

Because the vertical output mode of the mysql command is very nice, I've setup my environment to default the output to vertical layout. I've done…
asked June 1, 2011 10:44 am CDT
buzz3791
0
votes
4 answers
30 views

FTP inside a shell script not working

My host upgraded my version of FreeBSD and now one of my scripts is broken. The script simply uploads a data feed to google for their merchant…
asked May 24, 2011 3:42 pm CDT
user77413
0
votes
2 answers
37 views

Shell: script to group strings by substring

Hi Everyone, I have a program (sorry changing this is not an option) that is outputting log files with upwards of 500k lines. I am trying to group…
asked May 24, 2011 4:06 am CDT
Tristan
0
votes
0 answers
47 views

Check FTP Success-Failure Inside Korn Shell Script

Wondering what are some of the right ways to check whether FTP succeeded or not inside the korn shellscript.
asked May 19, 2011 1:24 am CDT
John C
0
votes
1 answer
31 views

Extract BBEdit search history into a shell script

I live off the regex search/replace in BBEdit. At times I cycle through a history of 8-9 search/replaces to convert a file. Is there anyway to…
asked May 18, 2011 2:42 pm CDT
Andrei Freeman
2
votes
3 answers
44 views

Assign AWK result to variable

This should be pretty straightfoward and I don't know why I am struggling with it. I am running the following psql command from within a shell…
asked May 17, 2011 8:36 am CDT
user739866
0
votes
2 answers
47 views

Replace text with placeholders from variable in bash

Hi, i've two variables. One is the text with placeholders eg. &a or &B. The other one contains the variables which should be inserted in the…
asked May 16, 2011 7:04 am CDT
Neo
Pages : 1 | 2 | 3 | 4 | 5 > [6]
104

shell

Tagged: shell
Related Tags
regex × 38
linux × 25
mysql × 21
bash × 20
sed × 15
ftp × 12
php × 12
scripting × 11
apache × 9
script × 9
unix × 7
mongodb × 5
grep × 5
ubuntu × 4
cron × 4
awk × 3
ruby × 3
sqlite × 3
csv × 3
email × 2
sql × 2
mysqldump × 2
http × 2
server × 2
sh × 2
postgresql × 2
postfix × 2
mac × 2