-2

I use WinSCP connect my remote server, and I cd into tomcat bin, and I want to execute the shutdown.sh.

enter image description here

But failed with the following message:

enter image description here

No matter I use:

./ shutdown.sh

Or

shutdown.sh

All will report the error.

lustre
  • 119
  • 1
  • 16
  • This Q is not about programming as defined for StackOverflow. It **may** be more appropriate on http://superuser.com or another StackExchange site. Use the `flag` link at the bottom of your Q and ask the moderator to move it. Please don't post the same Q on 2 different sites. ***Please*** read http://stackoverflow.com/help/how-to-ask http://stackoverflow.com/help/dont-ask and http://stackoverflow.com/help/mcve before posting more Qs here. Good luck. – shellter Mar 15 '17 at 03:23

1 Answers1

0

"./ shutdown.sh" there is a space between "./" and shutdown.sh

"./shutdown.sh" this is right

i don't know why like this. I don't use WinSCP, try putty

  • O MY GOD i‘m sorry my english is bad ! you see that? /.shutdown must be ./shutdown ! maybe your input is ./shutdown but i don't know why it change to /.shutdown ! i'm sorry i don't use WinSCP! i use putty – 时间只会一直走 Mar 15 '17 at 03:15