Search Results

Search: Posts Made By: slackman
Forum: Programming 03-14-2012
2,010
Posted By slackman
mysql_query not working
int inc=atoi(row[4]); /*increase counter field value +1*/
inc++;

char query_update[100];
sprintf(query_update,"update site_auth set counter='%d' where siteauth_id='1' ",inc);
...
Forum: Programming 03-14-2012
5,800
Posted By slackman
how to store string in variable
sorry i'm newbies c programer

how to store string to variable with value flexible.

example

int hh=1; ---> value flexible 1,2,3,4,5;
int xx=1; ---> value flexible 1,2,3,4,5;
char...
Forum: Programming 03-13-2012
1,355
Posted By slackman
how to compare value of mysql field
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>
#include <mysql.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include <mysql.h>

int...
Forum: Programming 03-13-2012
1,730
Posted By slackman
thank you very much
thank you very much
Forum: Programming 03-12-2012
1,730
Posted By slackman
how to programing daemon to create log record every second
i write .....


#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <unistd.h>

#define RUNNING_DIR "/tmp"
#define LOCK_FILE "exampled.lock"
#define LOG_FILE ...
4,662
Posted By slackman
squid 3.1 block website notworking
squid 3.1.8 on fedora14

http_port 3128 transparent no-connection-auth
icp_port 0
icp_query_timeout 0
mcast_icp_query_timeout 2000
dead_peer_timeout 10 seconds
log_fqdn off

cache_dir aufs...
1,193
Posted By slackman
Delete data between [] with sed
i'm cat /var/log/message

Jan 10 14:48:45 [13159.270340] LOG SKYPE-OUT IN=eth1 OUT=eth2 SRC=192.168.1.65 DST=203.157.168.5 PROTO=TCP SPT=1284 DPT=3306
Jan 10 14:48:45 [13159.321943] LOG HTTPS...
7,378
Posted By slackman
how to config ks.cfg for install another progra.
i create ks.cfg for automatic install for centos 5.2 it's work perfectky for cutom install linux package.



and i want to install another program with shell scripts (assume test.tar include in...
6,832
Posted By slackman
thank
thank you it's work

and more condition

if i want to some filed how to!!

SKYPE Dec 11 09:26:05 IN=eth1 OUT=eth0 SRC=192.168.1.56 DST=212.214.188.162 PROTO=UDP SPT=12630 DPT=54824

** i...
6,832
Posted By slackman
how to cut string with wildcard (sed)
i got text file and contain....

SKYPE Dec 11 09:26:05 IN=eth0 OUT=eth1 SRC=75.38.161.80 DST=192.168.1.56 PROTO=UDP SPT=30645 DPT=12630 LEN=66
SKYPE Dec 11 09:26:05 IN=eth1 OUT=eth0...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 05:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy