Hello
I have a RedHat 7.3 linux machine connected to the serial port on the
smart ups using the powerchute software. For low power, I have it run a
script:
echo "running" >> myfile
ssh shut@system1
ssh shut@system2
The machine doing the monitoring (call it A) has the user powerchute which
is how the ups service is running under. Now there is a user shut on
the other computers (linux boxes) who thru sudo have the right to run the
shutdown command. The shutdown command is placed in shut's .bash_profile
Now when I run the script from machine A as powerchute as the user
(meaning I type in ./runmyscript ), the script works and shuts down the
other systems. However, when I run it on low power thru APC's smart ups, the
script does not. (I mean that I go into the smart ups configuration and say
on low power to run the command runmyscript). When I look at the
/var/log/secure file on system1, I see that machine A closed the connection.
I cannot see why this occurs. (I know my script is running since the first
command in the script, the echo, works.)
(ssh'ing was all set up as far as A accepting the server key from system1
and there is no need for a password.)
Thanks,
Gail
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list