Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. chipperMDW

    How to print the first few lines in Python from a text?

    Hitting the Enter key in your text editor starts a new line. If you type a long paragraph in a text editor and never hit the Enter key, then that paragraph is all on one line. Your text editor may display the paragraph as being on multiple screen lines (a feature called word-wrap), but that's a...
  2. chipperMDW

    Buffered Recv Function?

    My man page says that recv may discard excess bytes depending on the type of socket. In other words, it'll probably discard excess bytes if you use it on a datagram socket, but for a stream socket, it shouldn't discard a thing.
  3. chipperMDW

    simple pimple but i can't crach it , bash script

    From the "Environment Variables" section of my GNU grep (2.5.3) man page: POSIXLY_CORRECT If set, grep behaves as POSIX.2 requires; otherwise, grep behaves more like other GNU programs. POSIX.2 requires that options that follow file...
  4. chipperMDW

    Equivalent to "Allow From"

    Actually, upon reading the documentation, that does not seem to be able to filter based on DNS name of the connecting IP. It just lets you filter based on IP, and gives you the ability to do a one-time reverse DNS lookup to find that IP. So does IIS have the ability to filter based on DNS name...
  5. chipperMDW

    Show who's using each IP port?

    This is a nice resource for when you know how to do something on one Unix variant and want to find an equivalent for another: http://www.bhami.com/rosetta.html
  6. chipperMDW

    Show who's using each IP port?

    The fuser command can be used for the same thing with slightly different syntax: fuser 22/tcp Try the -v option, too.
  7. chipperMDW

    Equivalent to "Allow From"

    That sounds about right. Thanks!
  8. chipperMDW

    Equivalent to "Allow From"

    Apache has "Allow From" and "Deny From" directives that can control access based on the DNS of a connecting IP (found by a reverse lookup). I was wondering if IIS has an equivalent to this capability.
  9. chipperMDW

    rcmd: socket: Permission denied

    Those aren't the file's permissions; that's a symlink, and symlinks always show up with 0777 permissions. You're looking for the permissions on the file it's pointing to (/opt/K/SCO/tcp/6.0.0Ni/usr/bin/rlogin, if that's not also a symlink).
  10. chipperMDW

    Show who's using each IP port?

    Also, netstat has a -p option: -p, --program Show the PID and name of the program to which each socket belongs.
  11. chipperMDW

    How to update my account password on 100 unix server ?

    To address the underlying problem here, I'd suggest you look into using a directory service like NIS+ or LDAP.
  12. chipperMDW

    Help with learning how to compile small project (3 files)

    For a simple project, you can get away with listing both source files on the command line: $ g++ gcd.cpp gcd-tester.cpp -o gcd-tester However, the correct way (especially on larger projects) is to compile each source file into an object file (ending with .o) using the -c option, then link the...
  13. chipperMDW

    Install gcc

    Most distributions have package managers that work with binary packages. You should just be able to download and install a gcc package without compiling. Then, you can use it to compile the other one if you really need to. What distribution is your Web server running? If it's Debian-based...
  14. chipperMDW

    wcsdup() not defined

    Is the wcsdup declaration #ifdefed out? With what? I'll bet you need to do: #define _GNU_SOURCE #include <wchar.h> to make the declaration visible to your code.
  15. chipperMDW

    How does 'inject' work on enumerables?

    The block takes two arguments: a "current value" (memo), and the next item in the sequence (obj). The block specifies an operation that is to be performed on its arguments (the current value and the next item), resulting in a new value. The block is called for each element in the sequence. The...
  16. chipperMDW

    Script to edit Crontab

    So did cron send you any mail?
  17. chipperMDW

    Script to edit Crontab

    I meant the environment variables (if any) defined at the top of root's crontab. That is, the environment variables defined in /var/spool/cron/crontabs/root.
  18. chipperMDW

    Script to edit Crontab

    Oops. Need an edit button... Replace "Did your app ran" with "Did your app run
  19. chipperMDW

    Script to edit Crontab

    Did your app ran correctly when you had the line in root's crontab? If it did, what are the environment variable settings in root's crontab? Cron sends mail when your command produces output or when there's a problem. In this case, it's going to send to root on your box (which may be aliased to...
  20. chipperMDW

    Script to edit Crontab

    Sure. Files in the cron.d directory just contain /etc/crontab-style lines, which specify a user in addition to the times and command. Given your above example, you'd simply have a file /etc/cron.d/myapp that looks like: * * * * * root python /myapp/myapp.py > /myapp/output 2>&1 You may also...

Part and Inventory Search

Back
Top