<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: some questions in unix in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624120#M236427</link>
    <description>b)  we have two job scheduler one through crontab ,another "at" or "batch "&lt;BR /&gt; which one we have to prefer  if i have to submit a job ... Is there any criteria / significance for using this job scheduler&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;d)How do you see child processes of a given process? otherwise the parent process and all child process ? How do you kill all the child processes of a parent process?&lt;BR /&gt;&lt;BR /&gt;ps -ef give all my listing of processes  How i know which one have is the parent processes and what is the child processes for that ...&lt;BR /&gt;&lt;BR /&gt;f) i m use command nice -1 &amp;lt;&lt;PROG&gt;&amp;gt;&lt;BR /&gt; if already the process is running Can  i  increase the prioriry by checking the process (by ps -ef ) is there any other effect ...&lt;BR /&gt;&lt;BR /&gt;ja)How do u come to know any commands in unix executed or not.How do you come to know whether the last process executed successfully or not&lt;BR /&gt; Tried varitalb $?  But it is not working ....&lt;BR /&gt; Thanx again for ur reply ....&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt;subrato &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PROG&gt;</description>
    <pubDate>Mon, 12 Sep 2005 16:00:36 GMT</pubDate>
    <dc:creator>subrata  Sur</dc:creator>
    <dc:date>2005-09-12T16:00:36Z</dc:date>
    <item>
      <title>some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624110#M236417</link>
      <description>Can any one tell me &lt;BR /&gt;a)what is the maximum entry given in crontab&lt;BR /&gt;&lt;BR /&gt;b)how many conjobs can run at a time&lt;BR /&gt;&lt;BR /&gt;c)How to Schdule Jobs in Unix apart from cronjobs eg,A command to be executed at 12 hrs on every Monday what is the other method to schedule this apart from cronjobs...&lt;BR /&gt;&lt;BR /&gt;How many job schedulers are available in unix.&lt;BR /&gt;Which one you will prefer?&lt;BR /&gt;&lt;BR /&gt;d)How do you see child processes of a given process? otherwise the parent process and all child process ? how can i kill child as well as parant process ?&lt;BR /&gt;How do you kill all the child processes of a parent process?&lt;BR /&gt;e)&lt;BR /&gt;How to see a growing trace file?&lt;BR /&gt;f)How do u increase the priority of a process ? &lt;BR /&gt;g)&lt;BR /&gt;How to list only the directories in current directory ?&lt;BR /&gt;ls -d is not work ....&lt;BR /&gt;uacob004 $ ls -d&lt;BR /&gt;.&lt;BR /&gt;h)&lt;BR /&gt;What is sticky bit ?&lt;BR /&gt;i)How to replace the control characters (say ^M) from a file ?&lt;BR /&gt;j)&lt;BR /&gt;How to know the current shell version ?&lt;BR /&gt;How you will find out which shell i m working ?&lt;BR /&gt;ja)How do u come to know any commands in unix executed or not.How do you come to know whether the last process executed successfully or not&lt;BR /&gt;k)&lt;BR /&gt;What's the default and first shell ?&lt;BR /&gt;l)&lt;BR /&gt;How to make sure that the oracle session opened within a shell script will automatically get closed when process is killed at the unix side.&lt;BR /&gt;m)&lt;BR /&gt;what is nohup ? what is difference between nohup and &amp;amp;(ampersand)?&lt;BR /&gt;n)&lt;BR /&gt;How to rename a string in file from command promt&lt;BR /&gt;o)&lt;BR /&gt;How to move value in $10 to $9?&lt;BR /&gt;&lt;BR /&gt;Thanx in advance   If u have answer any one of this query ...&lt;BR /&gt;With regards,&lt;BR /&gt;Subrata &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624110#M236417</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-09-12T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624111#M236418</link>
      <description>Is this a test from a class you are taking?&lt;BR /&gt; &lt;BR /&gt;Do you get a point for every right answer?&lt;BR /&gt; &lt;BR /&gt;Speaking of points... I notice you haven't assigned points to any of your previous posts.&lt;BR /&gt; &lt;BR /&gt;e) tail -f tracefile&lt;BR /&gt;f) "nice" command&lt;BR /&gt;g) ll | grep "^d"&lt;BR /&gt;h) Sticky bit use to mean keep an executable in memory, but now it is used on directories to only allow owner to modify/delete a file&lt;BR /&gt;i) tr -d "[:graph:]" &lt;INPUTFILE&gt;outfile&lt;BR /&gt;j) what /usr/bin/sh&lt;BR /&gt;ja) varitalb $? has exit value of last command&lt;BR /&gt;k) entry in /etc/passwd to use when user logs on&lt;BR /&gt;m) "nohup" keeps a background session active even if the launching session exits. "&amp;amp;" used to define a process to run in the background.&lt;BR /&gt;n) sed -e 's/string1/string2/g' &lt;INPFILE&gt;outfile&lt;BR /&gt;o) shift command&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills&lt;/INPFILE&gt;&lt;/INPUTFILE&gt;</description>
      <pubDate>Mon, 12 Sep 2005 15:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624111#M236418</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-09-12T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624112#M236419</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;many questions, some answeres.&lt;BR /&gt;&lt;BR /&gt;a. don't remember if there is any limitations. I have never seen any problem.&lt;BR /&gt;c. cron, at&lt;BR /&gt;f. nice, rtprio (use with caution) &lt;BR /&gt;g. "find . -type d"&lt;BR /&gt;i. see man page for tr. \&lt;OCTAL_VALUE&gt; can be used&lt;BR /&gt;k. I don't know if it is correct to call "Default" but, Posix shell is the standard HP-UX shell.&lt;BR /&gt;m. nohup is normally used together with &amp;amp;. makes the process imine to logout&lt;BR /&gt;n. sed&lt;BR /&gt;o. shift&lt;BR /&gt;&lt;/OCTAL_VALUE&gt;</description>
      <pubDate>Mon, 12 Sep 2005 15:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624112#M236419</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-09-12T15:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624113#M236420</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I will start at the beginning, I hope others will fill in the blanks :-)&lt;BR /&gt;&lt;BR /&gt;A+B&lt;BR /&gt;&lt;BR /&gt;# cat /var/adm/cron/queuedefs&lt;BR /&gt;&lt;BR /&gt;wil give you the cron definitions.&lt;BR /&gt;&lt;BR /&gt;something like&lt;BR /&gt;&lt;BR /&gt;a.4j1n&lt;BR /&gt;b.2j2n90w&lt;BR /&gt;c.10j2n&lt;BR /&gt;&lt;BR /&gt;"c"  &amp;lt;&amp;lt; the "c" queue, for cron jobs&lt;BR /&gt;  "10j" &amp;lt;&amp;lt; 10 cron jobs can be running simultaneously&lt;BR /&gt;  "2n" &amp;lt;&amp;lt;  jobs will run at a nice value of 2&lt;BR /&gt;&lt;BR /&gt;C&lt;BR /&gt;&lt;BR /&gt;At is an other cronlike command.&lt;BR /&gt;&lt;BR /&gt;J &lt;BR /&gt;# echo $shell&lt;BR /&gt;&lt;BR /&gt;Ja, depends how you write your scripts.&lt;BR /&gt;&lt;BR /&gt;H posix shell and korn shel (sh and ksh) root  is strongly adviced to use the posix shell.&lt;BR /&gt;&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 15:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624113#M236420</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-09-12T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624114#M236421</link>
      <description>I will not encourage or reinforce laziness. Do some research on your own first then ask targeted questions. For example, a) and b) can both be answered by a simple "man cron". The cron man page will in turn lead you to this queuedefs man page. This is a "stickey-bit" for me.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 15:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624114#M236421</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-12T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624115#M236422</link>
      <description>Thanx  again  for ur reply &lt;BR /&gt;&lt;BR /&gt; i have a confusion of this question as some of the answer i dont know and some i  still have confusion ...&lt;BR /&gt;&lt;BR /&gt;a) i have checked queuedefs command in crontabs it is q.[njobj][nicen][nwaitw] &lt;BR /&gt;&lt;BR /&gt;njob    The maximum number of jobs that can be run simultaneously in that queue. Although any number can be specified here, the total number of jobs that can be run on all the queues is limited to 100.&lt;BR /&gt;&lt;BR /&gt;so i guess the 100 cron jobs will be submit at a time if I m wrong plz correct me &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 15:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624115#M236422</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-09-12T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624116#M236423</link>
      <description>I'm with Clay. &lt;BR /&gt;"man" and "google" will do the job in 3 minutes.&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Mon, 12 Sep 2005 15:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624116#M236423</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-09-12T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624117#M236424</link>
      <description>Now that's a better question. The maximum number of jobs that can be run by cron at any one time is 100. This does not mean that one can't have thousands of cron jobs just so long as no more than 100 are running at any one time. Of course, any one cron job could in turn actually execute many, many processes --- all at the same time (more or less) by placing the commands in background via the ampersand (&amp;amp;) or by having them run serially by not placing the processes in background.</description>
      <pubDate>Mon, 12 Sep 2005 15:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624117#M236424</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-12T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624118#M236425</link>
      <description>Hi Subrata,&lt;BR /&gt;&lt;BR /&gt;c) at , and own scripts , apart from cron.&lt;BR /&gt;d) ps -ef  , kill -9 &lt;BR /&gt;f) with nice command&lt;BR /&gt;g) ls -l | grep dr&lt;BR /&gt;h) to set special permission, every one can access and wrtie , but not delete.&lt;BR /&gt;i) with dos2ux command , or  with awk and tr command.&lt;BR /&gt;j) echo $?   [ Return 0 , for if the last command is successful ]&lt;BR /&gt;k) on hp-ux defaule shell is POSIX .   /usr/bin/sh&lt;BR /&gt;m) nohup -&amp;gt; ro run a command in background even user logs out, or hangsup.  Ampersand --&amp;gt; kills the process when logsout.&lt;BR /&gt;n) to rename a string from a command prompt use  sed command.  $ sed 's/old/new/'  filename1 &amp;gt; filename2&lt;BR /&gt;o) $9="`echo $10`"&lt;BR /&gt;&lt;BR /&gt;Enjoy ,&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 15:29:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624118#M236425</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-12T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624119#M236426</link>
      <description>I'll do a few&lt;BR /&gt;&lt;BR /&gt;e)  tail -f trace_file&lt;BR /&gt;g)  ls -l |grep '^d'&lt;BR /&gt;o)  shift</description>
      <pubDate>Mon, 12 Sep 2005 15:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624119#M236426</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-09-12T15:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624120#M236427</link>
      <description>b)  we have two job scheduler one through crontab ,another "at" or "batch "&lt;BR /&gt; which one we have to prefer  if i have to submit a job ... Is there any criteria / significance for using this job scheduler&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;d)How do you see child processes of a given process? otherwise the parent process and all child process ? How do you kill all the child processes of a parent process?&lt;BR /&gt;&lt;BR /&gt;ps -ef give all my listing of processes  How i know which one have is the parent processes and what is the child processes for that ...&lt;BR /&gt;&lt;BR /&gt;f) i m use command nice -1 &amp;lt;&lt;PROG&gt;&amp;gt;&lt;BR /&gt; if already the process is running Can  i  increase the prioriry by checking the process (by ps -ef ) is there any other effect ...&lt;BR /&gt;&lt;BR /&gt;ja)How do u come to know any commands in unix executed or not.How do you come to know whether the last process executed successfully or not&lt;BR /&gt; Tried varitalb $?  But it is not working ....&lt;BR /&gt; Thanx again for ur reply ....&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt;subrato &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PROG&gt;</description>
      <pubDate>Mon, 12 Sep 2005 16:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624120#M236427</guid>
      <dc:creator>subrata  Sur</dc:creator>
      <dc:date>2005-09-12T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624121#M236428</link>
      <description>B)  AT is a one shot schedule of a job, cron sets the job to run at regularly scheduled intervals</description>
      <pubDate>Mon, 12 Sep 2005 16:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624121#M236428</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-09-12T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624122#M236429</link>
      <description>D)  under SAM&amp;gt;Process Management&amp;gt;Process Control, the display is sorted so as to list all child processes under the parent process</description>
      <pubDate>Mon, 12 Sep 2005 16:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624122#M236429</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-09-12T16:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624123#M236430</link>
      <description>To find the child processes of a given parent process, write a script similar to this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;PPID=${1}&lt;BR /&gt;shift&lt;BR /&gt;ps -ef | awk -v ppid=${PPID} '{if (($3 + 0) == ppid print}'&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;my.sh 6097 # to find all child processes of PID 6097&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The status of the last executed command is ${?} BUT you must capture it immediately because the next command will alter it.&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;ls -l /rrr/ggg&lt;BR /&gt;STAT=${?}&lt;BR /&gt;if [[ ${STAT} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;  echo "Okay"&lt;BR /&gt;else&lt;BR /&gt;  echo "Bad"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Note: The exit status of MOST processes use 0 to indicate success but that status is the whim of the programmer.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 16:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624123#M236430</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-12T16:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624124#M236431</link>
      <description>ja)  the exit status of a command is stores in the $? variable.  $? = 0 if it was successful.</description>
      <pubDate>Mon, 12 Sep 2005 16:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624124#M236431</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-09-12T16:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624125#M236432</link>
      <description>Ooops that should be:&lt;BR /&gt;&lt;BR /&gt;PPID=${1}&lt;BR /&gt;shift&lt;BR /&gt;ps -ef | awk -v ppid=${PPID} '{if (($3 + 0) == ppid) print}'&lt;BR /&gt;&lt;BR /&gt;and yes, the ($3 + 0) was intentional.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 16:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624125#M236432</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-12T16:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: some questions in unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624126#M236433</link>
      <description>To see the parent/child relationship of all processes, use ps with the UNIX95 variable set as in:&lt;BR /&gt; &lt;BR /&gt;UNIX95=1 ps -eH&lt;BR /&gt; &lt;BR /&gt;You can limit the listing to a given user login:&lt;BR /&gt; &lt;BR /&gt;UNIX95=1 ps -fHu user-name&lt;BR /&gt; &lt;BR /&gt;man ps for a lot of details</description>
      <pubDate>Mon, 12 Sep 2005 21:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-questions-in-unix/m-p/3624126#M236433</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-12T21:37:45Z</dc:date>
    </item>
  </channel>
</rss>

