Search:
Type: Posts; User: chrism01
Search:
Search took 0.06 seconds.
-
Also worth looking at nmap: http://www.insecure.org/nmap/
-
If you are going to use PHP, try the PCRE (Perl Compatible RegExes) in re bwkaz's point: http://www.php.net/manual/en/ref.pcre.php
-
find <yourdir> -name '*.eml' -atime +180 rm {} \;
Try this in a test dir first ...
-
Well, I'd write it as 1 prog with subs, and put the dir names in a cfg file and read that at startup. Makes it trivial to move the prog around.
Also, to avoid wasting time/code with filename checks,...
-
Third party tools are either running after the OS has booted, which means they can use normal access routines, or they have paid MS a license to use NTFS tech & signed NDA.
One of the points of...
-
I'd say pixellany's explanation is pretty good.
It's just another prog, which is why there are other shells eg ksh, zsh, tcsh, csh etc ...
Generally I'd ignore kernel built-ins (unless hacking the...
-
voidinit is correct. Char arrays are not terminated by '\0' (or anything else). Char string arrays eg
char msg[] = "asd";
will be terminated by '\0' and have size 4.
I've seen many progs break...
-
I think you may want to look at Perl with such modules as WWW::Mechanize if you want to get into serious website access/manipulation from the cmd line.
-
You could try something like:
$pid=open(README, "prog args | ") or die...
while (<README>)
{
}
which will capture stdout from prog
or look into IPC::Open2 or IPC::Open3 ... see Cookbook Ch16
-
Actually, nfs just shares the disk(s) across multiple boxes (hence the name). It doesn't make a separate backup copy as such. For that I'd highly recommend rsync + cron.
-
Have a look at /etc/bashrc, assuming you are using bash.
The relevant line in mine is:
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
...
-
try echo -n $list > back.jobs
-
That's good, but as I mentioned, if it's a successful root intrusion, he might(!) be smart enough to get round that....
Best thing is to check from a bootable CD eg Knoppix
Good luck
-
Re security SW, start with Tripwire, so you know what's been changed on your system next time.
This is assuming it isn't a root intrusion.
You can check using http://www.chkrootkit.org/ and/or...
-
If you are just worried about getting the fields correctly, where an arbitrary/random amount of whitespace may exist before/in-between fields, use awk instead of cut.
-
In general, Unix/Linux cmds don't like names with spaces in, although you can use either of the above suggestions to cope ...
Personally I'd rename the file/dir if at all possible, even if it means...
-
If you don't mind a bit of programming, try the Perl modules LWP & HTTP. They are designed to do exactly this sort of thing eg google for Perl Cookbook, Chap 20; Web Automation for examples or...
-
%s would be a dummy parameter (or placeholder) for a string type value.
See the printf() cmd in eg C, Java, Bash, Perl etc ....
-
AFAIK, RH9 has not been supported, specifically inc security updates, for a long time now.... I seriously suggest you consider upgrading if it's a publically avail system (and even if it isn't,...
-
Have you looked at the cron email? What about file ownerships?
-
You may find this useful :)
-
Here's a script I wrote to make gpg easier to use... as always no guarantees, use at your own risk, computer may explode etc :)
HTH
-
See the read cmd here: http://www.tldp.org/LDP/abs/html/internal.html#EX36
Also, as I said, if you use 'set -xv' near the top, it'll dump out everything it's doing before and after translating vars...
-
What are you trying to accomplish? One big sorted list?
@team_emails = (@team1_emails, @team2_emails, @team3_emails);
@sorted = sort { $a cmp $b } @team_emails;
-
I agree with psi42, it looks like it should be interpolating the value for the variable TITLEBAR ie use ${var} notation, not trying to run it as a cmd ie $(cmd) notation.
Re shell scripts:
if no #!...
|
|