Page 157 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 157

Unit 8: Shell




          httpd -l : Lists compiled in Apache modules                                           notes
          httpd status : Only works if mod_status is enabled and shows a page of active connections service
          httpd restart : Restarted Apache web server


             Did u know?   What  are  the  top  commands  is  excellent  for  managing  your  system
             processes?

             

              Caselet   of commands and Batch files

               need some information about commands in batch file. I mentioned in batch file as @at
               time:10:15:11.35p “c:\data\byt.” But the command is not run in the specified time. The
             I batch file extension is byt, which is the batchfile I mentioned with path in batch file.
             Please tell me what the Schedule service is. How do I use the `AT’ `at’ command to use at
             command in a batch file? My system runs on: Windows NT 2000. Please suggest a solution
             with an example.
             m.D. anwar
             “AT” is a command line utility used for scheduling tasks. It uses the same “Task Scheduler”
             service used by the widows scheduler in the control panel. You need to have this service
             running to have the “AT” command working. Please check out some information on the
             same by going to the “Services” icon in the control panel.
             A correction to the above command is that you should remove the “time” parameter form
             the command line and just give the command as “at 10:15 c:\data\byt.bat”. Since this
             command runs as a background process you can include “{circ}{gt} c:\output.txt” to the
             command line so that you can see what has actually happened, so you command will now
             look like this: “at 10:15 c:\data\byt.bat {circ}{gt} c:\output.txt “.
             There is one more command utility which you can use to schedule tasks, it is the schtasks.
             exe. It has all the functionality of “AT” and more. The scheduler in the control panel and
             schtasks.exe are one and at the same. In other words, using schtasks.exe you can handle the
             windows scheduler form the command prompt itself.
          Source: http://www.thehindubusinessline.in/ew/2004/03/31/stories/2004033100320401.htm

          8.3 summary

          Computers understand the language of zeros and ones known as binary language. In the early
          days of computing, instructions were provided using binary language, which is difficult for all
          of us humans to read and write. Bash is a free software UNIX shell written for the GNU Project.
          Its name is an acronym which stands for Bourne-again shell. The C shell (csh) is a Unix shell
          developed by Bill Joy for the BSD Unix system. The Korn shell (ksh) is a Unix shell which was
          developed by David Korn (AT&T Bell Laboratories) in the early 1980s. TCSH is an enhanced but
          completely compatible version of the Berkeley UNIX C shell.

          8.4 keywords

          C shell: The C shell (csh) is a Unix shell developed by Bill Joy for the BSD Unix system.
          Korn shell: The Korn shell (ksh) is a Unix shell which was developed by David Korn (AT&T Bell
          Laboratories) in the early 1980s.



                                           LoveLy professionaL university                                   151
   152   153   154   155   156   157   158   159   160   161   162