Search Results

Search: Posts Made By: siris1
Forum: Programming 09-27-2010
4,140
Posted By siris1
You should be able to do: if(strstr(dutt,...
You should be able to do:

if(strstr(dutt, "pre_ti_data_bdt") != NULL || strstr(dutt, "pre_ti_data_nn") != NULL)
continue;

However, looking at your code, you always concatenate "bdt" or "nn" ...
Forum: Programming 09-27-2010
4,140
Posted By siris1
Perhaps I am not understanding you correctly... ...
Perhaps I am not understanding you correctly...

---------- Post updated at 11:57 AM ---------- Previous update was at 11:57 AM ----------



Exactly...
Forum: Programming 09-27-2010
4,140
Posted By siris1
Well that should work then. If you see the...
Well that should work then. If you see the occurrence of "pre_ti_data_bdt" then continue....i.e.


if(strstr(string_you_want_to_parse,"pre_ti_data_bdt") != NULL)) // pre_ti_data_bdt in string
...
Forum: Programming 09-27-2010
4,140
Posted By siris1
If you only care about the data prior to "*",...
If you only care about the data prior to "*", then you can use "strstr()" which checks if your string contains that data.
Forum: Programming 09-27-2010
7,665
Posted By siris1
If you can now properly parse out the ampersand,...
If you can now properly parse out the ampersand, I would suggest forking a process, daemonizing it, then executing whatever shell command is needed.
Forum: Programming 09-27-2010
7,665
Posted By siris1
Rather than using your own ParseArgs function, C...
Rather than using your own ParseArgs function, C has a built-in function called "getopt". It is a lot cleaner and meant for parsing command line arguments. (getopt(3): Parse options - Linux man page...
Forum: Programming 09-25-2010
4,149
Posted By siris1
Try: gcc -static -o fib main.c fib.c fib.h ...
Try:

gcc -static -o fib main.c fib.c fib.h


This will compile an executable "fib"..I assume a Fibonacci example..statically.
3,391
Posted By siris1
Are you planning to change the keys in the...
Are you planning to change the keys in the future? You could probably just remove the binary if not (rm `which ssh-keygen`). If you did need to generate new keys you could do so on another machine...
16,553
Posted By siris1
The "&>" will actually redirect all output...
The "&>" will actually redirect all output (stderr, stdout) in this case to a file.
Forum: Cybersecurity 09-25-2010
3,700
Posted By siris1
With your subnet mask of /32, its possible your...
With your subnet mask of /32, its possible your source address is not matching correctly. With a mask of /32 that allows 1 IP address. Try "-s a.a.a.a/24", this means for the last octet can be in...
35,724
Posted By siris1
I tend to use "ps aux wwwf", this provides a wide...
I tend to use "ps aux wwwf", this provides a wide output with "f" giving you the full path output.
Showing results 1 to 11 of 11

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