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 strongm 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. roylec

    What directory is mail stored in Unix

    It depends on your flavour of unix and your flavour of mail.
  2. roylec

    Why my shell script doesn't delete a file ???

    Just a note to check the obvious... When you call servckhtmlstat, it tells the apache webserver to dump stats to the file you specify. This is done by the apache user, so the file is owned by the apache user. If you run are running this script under a different user, your own user for...
  3. roylec

    Cron Jobs...newbie here

    I would like to see the cron entry you have, but you probably need to put the whole path to ip.php in your cron command: 00 00 * * * /path/to/ip.php There is a fundamental difference between running a command under cron, and running a command directly. Firstly, the command is run under the...
  4. roylec

    Sudo Help

    The sudo command is only really intended to enable a user to run a specific command as the superuser or another user. The correct method is to create a group which the root user and your 'other' user both belong to, then create the directory, and ensure that whenever either root or the user...
  5. roylec

    Can grep be malicious?

    The following command will delete all contents of a file named myfile. grep foo myfile > myfile The reason for this is that the shell 'opens' the file that will be written to (in overwrite mode), before starting the grep process, or any other process preceeding the '>' character...
  6. roylec

    mail

    You can add aliases to your .mailrc file in the form: alias NewAlias { Address... | PreviousAlias... } ..and you need to use the .forward file to send your email to a program or script you have explicitly designed to manage your rule set. I would strongly advise that you do not use...
  7. roylec

    disable 'ctrl c' sequence in a script

    The ^C command sends an Interrupt signal (2) to the running process. Use the trap command to ignore this signal: trap "" 2 Loosely, this command means: when you receive a signal 2, do nothing ("") Use 'man trap' to find out more about this command
  8. roylec

    Suppress Headers in SELECT statements

    Just so we dont get lost on unnecessary details, the code I gave should have read: cat <<-EOT | mysql --user=user --password=pass mydb select NAME from ENV) EOT
  9. roylec

    Suppress Headers in SELECT statements

    I am running the select statement from a unix script, and want the unix script to manage only the valid values, not the table name. For example, the following statement: cat <<-EOT | mysql --user=user --password=pass mydb select * from ENV where NAME=&quot;$1&quot;) EOT Will return the...
  10. roylec

    Suppress Headers in SELECT statements

    I've tried to find this in the MySQL reference, and done some online searches, but I cant find any reference to this issue: select NAME from DPLENV; +------+ | NAME | +------+ | BAR | | FOO | +------+ 2 rows in set (0.00 sec) I want the output formatted so that the...
  11. roylec

    How to change the file permissions

    Amarg, Please post more details of the job that is running on Server_1. - Is this a script? If so, please post the script or at least the relevant section - What mechanism do you use to create the directories remotely? DO you use 'rsh' or 'ssh'? Christian
  12. roylec

    Unix Dial-up server

    A General Note on 'mgetty': Sun have released a patch to mgetty to solve a potential vulnerability which could cause maliscious attackers to take control of a system. If you are considering using this mechanism, please be sure you have updated your system.
  13. roylec

    Unix Dial-up server

    Its probably me, but I have some dumb questions: 1) Do intend the UNIX server to respond to an incoming ISDN call? Or will the server Dial-Out on some event which demands connectivity? 2) If you are responding to an incoming call, what session would you like to get when...
  14. roylec

    Weblogic admin console problem

    Can you post the config.xml you use for this domain please?
  15. roylec

    Constraints on Foreign Keys and references

    Corrections to the table creations pointed out in an email - I was in a rush when I typed it so... CREATE TABLE CLASS ( ID INT NOT NULL DEFAULT 0 AUTO_INCREMENT PRIMARY KEY, group INT NOT NULL UNIQUE ); CREATE TABLE FOO ( ID INT NOT NULL DEFAULT 0 AUTO_INCREMENT...
  16. roylec

    Constraints on Foreign Keys and references

    This is the first time I've created my own RELATIONS in the otherwise glorious mySQL, so I need some insight on the following: I have one table meant to carry a list of possible values, which may grow/shrink over time for example: CREATE TABLE CLASS ( id INT NOT NULL DEFAULT 0...
  17. roylec

    how to force tail -f continuous

    Use Salems answer if you have GNU tar. If not, you need to script your own solution. You dont describe how or why the file is moved, so assuming its a rotated log file, write a script 'mytail' that does something like the following: (1) Start a background sub-process tail command sending...
  18. roylec

    easy question

    While I'm still here, here is the documentation from BEA on this subject - its not hard: http://e-docs.bea.com/wls/docs61/pdf/install.pdf
  19. roylec

    easy question

    There should be a file named installNTService.cmd with your distribution. Take a look inside, its quite self-explanatory. In a bit of a hurry at the moment - will call back later if you're not fixed. C
  20. roylec

    Weblogic admin console problem

    A couple of questions first. 1) I consider the Admin Console to be the HTML GUI that connects to the Administration Server Process. Do you mean this GUI or the Server Process. 2) Can you show the tail command you are using please? (re-test it then post the same commands you used.)

Part and Inventory Search

Back
Top