cancel
Showing results for 
Search instead for 
Did you mean: 
Quentin_R
Cadet
Cadet
  • 104 Views

Guided Exercise ch05s02 - systemctl output with command-line assistant doesn't work

Hello all!

I did the ch05s02 guided exercise but I have an issue to use the command-line assistant with the systemctl output.

The original solution is:

echo "student" | sudo -S systemctl status httpd.service | \
c chat "Check the logs, help me to fix the issue"

It seems that this doesn't work as intended:

image.png

Two working workarounds:

sudo systemctl start httpd 2> http_error.txt
cat http_error.txt | c chat "Check the logs, help me to fix the issue"

or

sudo systemctl start httpd 2> http_error.txt
c chat -a http_error.txt "Check the logs, help me to fix the issue" 

Is the original solution works for you?

Thanks in advance! 

Labels (1)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.