Search Results

Search: Posts Made By: fed.linuxgossip
1,186
Posted By fed.linuxgossip
Covert simple bash script in perl language
Hello,

Anyone please covert this in perl language
########################

if ps faux | grep -v grep | grep ProcessXYZ

then

echo "$SERVICE is running, , everything is fine"
exit...
1,516
Posted By fed.linuxgossip
Sorry for the confusion, what spacebar said...
Sorry for the confusion, what spacebar said would wipe out other blocks of (<? some code ?> ) besides the particular block of code I gave , and I agree my mistake in not making this clear.

...
1,516
Posted By fed.linuxgossip
hi spacebar, thank you for the valuable...
hi spacebar,

thank you for the valuable input , however there are other blocks of good php code as well inside the file. so we cannot replace it as you mentioned.


Alternately, if we can...
1,516
Posted By fed.linuxgossip
Sed/replace help
How can we empty or replace with null, following block of code (within the php quotes including the quotes) from inside a file.


*** some other data above this code

<?
#317008#
...
Forum: Cybersecurity 05-28-2013
2,083
Posted By fed.linuxgossip
can you explain how to do this ? "One way to...
can you explain how to do this ?

"One way to do this might be to feed suspect datat through a simple compressor like gzip or lzop and see how well it compresses. If it compresses a LOT, the data...
Forum: Cybersecurity 05-28-2013
2,083
Posted By fed.linuxgossip
iptables string
Hi,

How can we differentiate the following two packets and use it in iptables for say string match ? what kind of string we can use for these two types in iptables? any ideas?


In case...
9,192
Posted By fed.linuxgossip
Thank you Alister
Thank you Alister
9,192
Posted By fed.linuxgossip
Error: integer expression expected
root@server01 [~]# df -h | grep /tmp | awk {'print $3}'
252M
root@server01 [~]#



root@server01 [~]# cat /usr/local/tmpchk.sh
#!/bin/sh

x=`df -h | grep /tmp | awk {'print $3}'`

if [...
2,702
Posted By fed.linuxgossip
DGPickett and methyl thank you for all...
DGPickett and methyl

thank you for all the valuable info.
2,702
Posted By fed.linuxgossip
Hi, the path is /temp not /tmp . Moreover...
Hi,

the path is /temp not /tmp . Moreover this is a assignment script only, not to be used in production. Plus this needs to run as a service, is running a cron necessary?



Thanks
2,702
Posted By fed.linuxgossip
linux service script for storing uptime
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

Can you...
1,264
Posted By fed.linuxgossip
help needed for an assignment script
1. The problem statement, all variables and given/known data:


Hi,
please advise a script/c program for following:

write program p1 which will create shared memory to hold an integer value...
1,168
Posted By fed.linuxgossip
help needed for an assignment script
Hi,
please advise a script/c program for following:

write program p1 which will create shared memory to hold an integer value and will create One child process inside child process run another...
2,045
Posted By fed.linuxgossip
linux service script for storing uptime
Hi,

Can you please advise a script for the following:

write linux service named system_up_duration .This service will create one file named uptime in directory ‘/temp/'. In this file the...
1,677
Posted By fed.linuxgossip
thanks a ton
thanks a ton
1,677
Posted By fed.linuxgossip
strike last part from list of files
Hi,

I have list of files as following:

/home/abc/x/23344.php
/home/axx/zz/ddddd/abc/7asda/2434.php
/home/zzz/7x/y/114.php
/home/assssc/x/yasyday/23664.php


( last part in each line is...
Forum: Programming 05-14-2010
1,682
Posted By fed.linuxgossip
thanks for giving it a shot, but it did not work...
thanks for giving it a shot, but it did not work as expected.
Forum: Programming 05-12-2010
1,682
Posted By fed.linuxgossip
Hi, In ASSP - Fail2ban...
Hi,

In ASSP - Fail2ban (http://www.fail2ban.org/wiki/index.php/ASSP) ,

Regex code for the log:
Nov-14-09 00:14:50 54090-05322 201.244.255.72 <badguy@gtgwhhrthrth.com> [SMTP Error] 550 5.1.1...
Forum: Programming 05-12-2010
1,682
Posted By fed.linuxgossip
REGEX code help
Hi,

I need as regex code for the following line: May-12-10 13:16:41 82.249.21.94 <apoxidikyt3339@proxad.net> user unknown terry@somedomain.com;
The above line is a log from ASSP

A similar...
8,438
Posted By fed.linuxgossip
thanks this one is more easier for a newbie like...
thanks this one is more easier for a newbie like me :)
8,438
Posted By fed.linuxgossip
Thanks a lot, can you advise some tutorial,...
Thanks a lot, can you advise some tutorial, which can help me learn above script
8,438
Posted By fed.linuxgossip
run commands within a script on certain days
Hi,

please advise a script, something like this:


If [day of the week is Tuesday or Thursday or Sunday];
then
do something
else ( or for any other day of the week )
do otherthing...
2,211
Posted By fed.linuxgossip
Hi, time stamp format is: 2009-02-28...
Hi,

time stamp format is:

2009-02-28 21:55:01
2,211
Posted By fed.linuxgossip
print contents of any file within some timeframe
Hi,


Is there anyway to print contents of any file ( say log files that grow automatically) within some timeframe ( comparing with current time), say

print contents of the added in:

1) ...
5,116
Posted By fed.linuxgossip
thanks
thanks
Showing results 1 to 25 of 118

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