Ad Widget

Collapse

scripts with su is not running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nTuple
    Junior Member
    • Dec 2016
    • 3

    #1

    scripts with su is not running

    hi

    may i know why scripts with su is not running ?

    the sample scripts are :

    Code:
    		su -s /bin/bash - oracle -c "srvctl status listener -v"|grep -v grep|grep -i "running"|wc -l	! Listener LISTENER is running on node(s):
    plz revert ASAP as it is little related to prod setup.

    thanks and regards
    nTuple
  • akbar415
    Senior Member
    • May 2015
    • 119

    #2
    Originally posted by nTuple
    hi

    may i know why scripts with su is not running ?

    the sample scripts are :

    Code:
    		su -s /bin/bash - oracle -c "srvctl status listener -v"|grep -v grep|grep -i "running"|wc -l	! Listener LISTENER is running on node(s):
    plz revert ASAP as it is little related to prod setup.

    thanks and regards
    nTuple
    Have you set up /etc/sudoers file?

    Comment

    • nTuple
      Junior Member
      • Dec 2016
      • 3

      #3
      Originally posted by akbar415
      Have you set up /etc/sudoers file?
      in which server we need to put this?

      Comment

      Working...