[opensuse] remotely execute "akonadictl restart"
I have a headless machine which I access via ssh. How would I execute a command such as "akaonatictl restart" on that machine? tks -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 07/02/2017 08:51 AM, Patrick Shanahan wrote:
I have a headless machine which I access via ssh. How would I execute a command such as "akaonatictl restart" on that machine?
tks
Same as you would from a terminal console. ssh to the computer su - to root enter the command -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* James Knott <james.knott@rogers.com> [07-02-17 09:04]:
On 07/02/2017 08:51 AM, Patrick Shanahan wrote:
I have a headless machine which I access via ssh. How would I execute a command such as "akaonatictl restart" on that machine?
tks
Same as you would from a terminal console.
ssh to the computer su - to root enter the command
no, that is why I asked. first akonadictl does not run as root and second, <user> cannot access the running instances of akonadi within the ssh session. I believe there is a dbus command that must be issued first ??? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
02.07.2017 16:16, Patrick Shanahan пишет:
I believe there is a dbus command that must be issued first ???
It's not exactly "command" - you would need to export session bus socket name. I am not sure how exactly it is done now (I do not use KDE). Check DBUS_SESSION_BUS_ADDRESS environment variable in KDE session. Session bus address should also be stored under ~/.dbus/session-bus. You may just source file there to get correct values. Of course you also need to export correct $DISPLAY. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
James Knott
-
Patrick Shanahan