Search Results - JustLinux Forums


Search:

Type: Posts; User: chrism01

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    11
    Views
    1,560

    Also worth looking at nmap:...

    Also worth looking at nmap: http://www.insecure.org/nmap/
  2. Replies
    5
    Views
    1,642

    If you are going to use PHP, try the PCRE (Perl...

    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
  3. Replies
    3
    Views
    1,739

    find -name '*.eml' -atime +180 rm {} \;...

    find <yourdir> -name '*.eml' -atime +180 rm {} \;

    Try this in a test dir first ...
  4. Replies
    5
    Views
    1,295

    Well, I'd write it as 1 prog with subs, and put...

    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,...
  5. Replies
    14
    Views
    2,818

    Third party tools are either running after the OS...

    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...
  6. Replies
    8
    Views
    10,534

    I'd say pixellany's explanation is pretty good. ...

    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...
  7. Replies
    3
    Views
    1,383

    voidinit is correct. Char arrays are not...

    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...
  8. I think you may want to look at Perl with such...

    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.
  9. Replies
    2
    Views
    2,399

    You could try something like: $pid=open(README,...

    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
  10. Replies
    2
    Views
    1,304

    Actually, nfs just shares the disk(s) across...

    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.
  11. Replies
    15
    Views
    2,111

    Have a look at /etc/bashrc, assuming you are...

    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
    ...
  12. Replies
    2
    Views
    1,218

    try echo -n $list > back.jobs

    try echo -n $list > back.jobs
  13. That's good, but as I mentioned, if it's a...

    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
  14. Re security SW, start with Tripwire, so you know...

    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...
  15. Replies
    7
    Views
    3,026

    If you are just worried about getting the fields...

    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.
  16. Replies
    7
    Views
    1,537

    In general, Unix/Linux cmds don't like names with...

    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...
  17. If you don't mind a bit of programming, try the...

    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...
  18. Replies
    5
    Views
    1,149

    %s would be a dummy parameter (or placeholder)...

    %s would be a dummy parameter (or placeholder) for a string type value.
    See the printf() cmd in eg C, Java, Bash, Perl etc ....
  19. Replies
    2
    Views
    1,006

    AFAIK, RH9 has not been supported, specifically...

    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,...
  20. Replies
    9
    Views
    1,129

    Have you looked at the cron email? What about...

    Have you looked at the cron email? What about file ownerships?
  21. Replies
    4
    Views
    1,026

    You may find this useful :)

    You may find this useful :)
  22. Replies
    7
    Views
    1,094

    Here's a script I wrote to make gpg easier to...

    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
  23. Replies
    20
    Views
    2,166

    See the read cmd here:...

    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...
  24. Replies
    15
    Views
    2,466

    What are you trying to accomplish? One big sorted...

    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;
  25. Replies
    20
    Views
    2,166

    I agree with psi42, it looks like it should be...

    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 #!...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4