Archive

Archive for February, 2009

Twitter update via shell Script

February 17th, 2009

Hope everyone is familiar with twitter if you still don’t check twitter.com

Twitter can be used to check updates online and its a great people to get updates online.

Save the code in twitter.sh


#!/bin/bash

read -p "Give your input : " -e input

curl –-basic –-user username:password –-data status="$input"
http://twitter.com/statuses/update.xml > /dev/null

echo “OK”


username and password should be edited to that of your twitter account.

Make sure you have curl installed in the server.

yum -y install curl

Now execute the script

sh twitter.sh

It will ask “Give your input :”

Enter your update it should be less than 140 characthers.

Enjoy twittering

Jim

SparkSupport

VN:F [1.9.6_1107]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

Shijil T S general, linux ,

Exim commands

February 17th, 2009

Exim commands

BASIC COMMANDS

Print a count of the messages in the queue: exim -bpc

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): exim -bp

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals): exim -bp | exiqsumm

Print what Exim is doing right now: exiwhat

Run a pretend SMTP transaction from the command line.The message will NOT actually be delivered : exim -bh 192.168.11.22

Display all of Exim’s configuration settings: exim -bP

SEARCHING THE QUEUE WITH exiqgrep

Use -f to search the queue for messages from a specific sender: ‘exiqgrep -f [user]@domain’

Use -r to search the queue for messages for a specific recipient/domain: exiqgrep -r [user]@domain

Use -o to print messages older than the specified number of seconds. For example, messages older than 1 day:

exiqgrep -o 86400

Use -y to print messages that are younger than the specified number of seconds. For example, messages less than an hour old:

exiqgrep -y 3600

MANAGING THE QUEUE

Start a queue run: exim -q -v

Remove a message from the queue: exim -Mrm <message-id>

Freeze a message: exim -Mf <message-id>

Remove all frozen messages: exiqgrep -z -i | xargs exim -Mrm

View a message’s headers: exim -Mvh <message-id>

View a message’s body: exim -Mvb <message-id>

View a message’s logs: exim -Mvl <message-id>

VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin general, linux ,

Nginx or Engine – X

February 17th, 2009

Please check out the new features about engine -x.

Nginx is a high-performance web and proxy server. It has a lot of features

As an Apache replacement that gracefully handles many concurrent connections: Nginx is especially popular among web hosting providers. 50,000 simultaneous connections have been reported, thanks to Nginx’s use of epoll and kqueue.

As a load-balancing proxy server: Nginx is a popular front-end to Rails and PHP applications, either via FastCGI or HTTP. Written in C, it consumes about a quarter of the CPU that Perlbal uses.

As a mail proxy server: more of a niche application, but fastmail.fm reports great success.

As a server with a simple installation process, a clean configuration file, and few bugs: Nginx is easy to get running, and it almost never needs restarting. You can even upgrade the binary with zero downtime.

VN:F [1.9.6_1107]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)

admin linux ,