<?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: understanding command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706786#M384533</link>
    <description>&amp;gt;I do have a log in /var/sam/log named br_log.&lt;BR /&gt;&lt;BR /&gt;Perhaps br_backup automatically sends its log info to br_log.  If br_backup is a script, you can search for br_log.</description>
    <pubDate>Mon, 01 Nov 2010 11:12:23 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-11-01T11:12:23Z</dc:date>
    <item>
      <title>understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706777#M384524</link>
      <description>I have the following command set up in a cron:&lt;BR /&gt;&lt;BR /&gt;15 2 * * 5 /usr/sam/lbin/br_backup LTO FULL Y /dev/rmt/0m /var/sam/graphRCAa16294 root Y 1 N &amp;gt; /var/sam/SAM_br_msgs 2&amp;gt;&amp;amp;1 #sambackup&lt;BR /&gt;&lt;BR /&gt;I understand crons and I understand this executes our backup and I get an email from the system.  I need help understanding this part...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /var/sam/SAM_br_msgs 2&amp;gt;&amp;amp;1 #sambackup&lt;BR /&gt;&lt;BR /&gt;I cannot find any files on my system named "SAM_br_msgs" and sambackup.  I do not understand what 2&amp;gt;&amp;amp;1 means.&lt;BR /&gt;&lt;BR /&gt;So if anyone is willing to shed some light on this, I surely will be appreciative.</description>
      <pubDate>Fri, 29 Oct 2010 15:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706777#M384524</guid>
      <dc:creator>Joy Conner</dc:creator>
      <dc:date>2010-10-29T15:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706778#M384525</link>
      <description>&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=989479" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=989479&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 29 Oct 2010 15:39:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706778#M384525</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-10-29T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706779#M384526</link>
      <description>There should be a file in /var/sam called SAM_br_msgs.  All messages from the backup should get written there.&lt;BR /&gt;&lt;BR /&gt;The '#sambackup' is just a comment.  No need to worry about that.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Oct 2010 15:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706779#M384526</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-10-29T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706780#M384527</link>
      <description>The part "&amp;gt; /var/sam/SAM_br_msgs 2&amp;gt;&amp;amp;1" is about input/output redirection, a basic feature of Unix.&lt;BR /&gt;&lt;BR /&gt;Each command you run will normally have three standard file descriptors, connected to standard input/output streams. Usually these streams are connected to your terminal, but you have the option of redirecting them to something else.&lt;BR /&gt;&lt;BR /&gt;The first of these standard streams is the standard input stream, or stdin for short. It is associated with file descriptor 0. Its usual role is passing the data you type from the terminal to the program.&lt;BR /&gt;&lt;BR /&gt;The second standard stream is the standard output stream, or stdout. It is associated with file descriptor 1. Its usual role is passing the output of the program to the terminal.&lt;BR /&gt;&lt;BR /&gt;The third standard stream is the standard error output, or stderr. It is associated with file descriptor 2. It is distinct from the standard output, so that you can still see any error messages on your terminal if you redirect the regular output stream somewhere else. Or you can redirect the regular output to one place and errors to another.&lt;BR /&gt;&lt;BR /&gt;The standard input and output are redirected using the redirection operators &amp;lt;, &amp;gt; and &amp;gt;&amp;gt;. The standard error output can be redirected using "2&amp;gt;" or "2&amp;gt;&amp;gt;". &lt;BR /&gt;&lt;BR /&gt;You can also refer to the standard input and output streams using the full form of the redirection operators, like 0&amp;lt; or 1&amp;gt;, but the short forms are overwhelmingly more common with these streams.&lt;BR /&gt;&lt;BR /&gt;"&amp;gt; /var/sam/SAM_br_msgs" (with or without the space) means "redirect the standard output of this command to file /var/sam/SAM_br_msgs. Any existing data in the file will be overwritten when the command is executed, even if it does not produce any output. If the file does not exist, it will be created.&lt;BR /&gt;&lt;BR /&gt;"2&amp;gt;&amp;amp;1" means "redirect the standard error output to file descriptor 1", i.e. "send the program's error messages to the same place as the standard output goes". As the standard output was redirected to file /var/sam/SAM_br_msgs, any error messages produced by the br_backup command will end up there too.&lt;BR /&gt;&lt;BR /&gt;Since "/var/sam/SAM_br_msgs" begins with the "/" character, this is a fully-qualified path name: it unambiguously identifies where the file should be. If the file does not exist, perhaps some other cron job deletes it?&lt;BR /&gt;&lt;BR /&gt;Or perhaps there is something wrong with the command line, and it cannot be executed? The cron daemon will normally send email to the owner of the job only if the job produces any output that is not redirected elsewhere, or if the command returns with an error code. As all the output of this command (including error messages) should go to /var/sam/SAM_br_msgs, there should be no output going to the mail message at all.&lt;BR /&gt;&lt;BR /&gt;The part "#sambackup" is just a comment: anything after the # character will have no effect, and can be used to describe the purpose of the command line. In this case, it probably indicates this command line was produced using SAM.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 29 Oct 2010 16:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706780#M384527</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-10-29T16:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706781#M384528</link>
      <description>&lt;!--!*#--&gt;I think your problem may be how complicated your command is, and then running a complex command in cron.&lt;BR /&gt;I find it much more reliable to make a cron command file somewhere, and run that.&lt;BR /&gt;&lt;BR /&gt;Your file(my_backup, for example) would contain:&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/br_backup LTO FULL Y /dev/rmt/0m /var/sam/graphRCAa16294 root Y 1 N &amp;gt; /var/sam/SAM_br_msgs 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;And your cron command would be:&lt;BR /&gt;&lt;BR /&gt;15 2 * * 5 /home/admin/croncmds/my_backup &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Of course, you can move that "my_backup" command anywhere you'd like, you get the picture...&lt;BR /&gt;&lt;BR /&gt;I just find that my stuff runs more reliably and happily from cron if I make a command file out of it.  Much fewer problems that way.</description>
      <pubDate>Fri, 29 Oct 2010 18:05:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706781#M384528</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2010-10-29T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706782#M384529</link>
      <description>There is no file "SAM_br_msgs" and I don't see a cron cleaning it up.  I do get the content in an email message.&lt;BR /&gt;&lt;BR /&gt;Thanks for shedding light on this.  My sysadmin guy is not here any more and I'm it for now.&lt;BR /&gt;&lt;BR /&gt;- Joy</description>
      <pubDate>Fri, 29 Oct 2010 19:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706782#M384529</guid>
      <dc:creator>Joy Conner</dc:creator>
      <dc:date>2010-10-29T19:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706783#M384530</link>
      <description>&amp;gt;I do get the content in an email message.&lt;BR /&gt;&lt;BR /&gt;What does it show?&lt;BR /&gt;Does /var/sam/ exist?</description>
      <pubDate>Sat, 30 Oct 2010 00:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706783#M384530</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-10-30T00:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706784#M384531</link>
      <description>Joy&lt;BR /&gt;Have you tried running the job on the command line to see if the file is created ?&lt;BR /&gt;This will eliminate "cron" from the equation. If it still isnt there then the problem may well be in your br_backup (or your options). I take it its a SAP / Oracle backup ? or is it just named "br*" ?.&lt;BR /&gt;My suggestions would be:&lt;BR /&gt;&lt;BR /&gt;1. Run full command as is on the command line;&lt;BR /&gt;2. if no "joy", then the problem would be in the br_backup or the options used;&lt;BR /&gt;3. try running the command without the re-direction part ie "/usr/sam/lbin/br_backup LTO FULL Y /dev/rmt/0m /var/sam/graphRCAa16294 root Y 1 N" - if theres no output, then theres definitely an issue with the backup or lack thereof.&lt;BR /&gt;4. Check the permissions of /var/sam and make sure its writeable&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Oct 2010 02:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706784#M384531</guid>
      <dc:creator>eric lipede_1</dc:creator>
      <dc:date>2010-10-30T02:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706785#M384532</link>
      <description>I do have a log in /var/sam/log named br_log.  Here is sample content&lt;BR /&gt;&lt;BR /&gt;Full backup started on roa6 : Fri Oct 29 05:00:00 EDT 2010 (Scheduled Backup)&lt;BR /&gt;{ fbackup -0 -u    -g /var/sam/graphFGAa04508 -I /var/sam/log/br_index.full -c /etc/sam/br/fbackup_config -d /var/adm/fbackupfiles/dates -f /dev/rmt/1m } 2&amp;gt;&amp;amp;1&lt;BR /&gt;Full backup completed successfully on roa6 : Fri Oct 29 05:52:48 EDT 2010 .&lt;BR /&gt;Exit code = 0&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Nov 2010 11:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706785#M384532</guid>
      <dc:creator>Joy Conner</dc:creator>
      <dc:date>2010-11-01T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706786#M384533</link>
      <description>&amp;gt;I do have a log in /var/sam/log named br_log.&lt;BR /&gt;&lt;BR /&gt;Perhaps br_backup automatically sends its log info to br_log.  If br_backup is a script, you can search for br_log.</description>
      <pubDate>Mon, 01 Nov 2010 11:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706786#M384533</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-01T11:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706787#M384534</link>
      <description>I found the script br_backup.</description>
      <pubDate>Mon, 01 Nov 2010 13:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706787#M384534</guid>
      <dc:creator>Joy Conner</dc:creator>
      <dc:date>2010-11-01T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706788#M384535</link>
      <description>OK.  And.......</description>
      <pubDate>Mon, 01 Nov 2010 13:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706788#M384535</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-01T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706789#M384536</link>
      <description>&amp;gt;I found the script br_backup.&lt;BR /&gt;&lt;BR /&gt;# file br_backup&lt;BR /&gt;&lt;BR /&gt;if it is really a script; you can see what it does:&lt;BR /&gt;&lt;BR /&gt;# less br_backup&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706789#M384536</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-11-01T14:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: understanding command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706790#M384537</link>
      <description>I can tell that Patrick must be inclined to teach.&lt;BR /&gt;&lt;BR /&gt;I see in the script that when the backup results are mailed, the stdout and the stderr are output to SAM_br_msgs.&lt;BR /&gt;&lt;BR /&gt;Thanks for the push. :-)&lt;BR /&gt;&lt;BR /&gt;Joy</description>
      <pubDate>Mon, 01 Nov 2010 14:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/understanding-command/m-p/4706790#M384537</guid>
      <dc:creator>Joy Conner</dc:creator>
      <dc:date>2010-11-01T14:52:42Z</dc:date>
    </item>
  </channel>
</rss>

