Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
797 views

Date command is not working in remote server when running using a script

I am running below command from a script from a remote server, but getting error No such file or directory ssh -t -t [email protected] \"sudo mysql nss_mysql < /home/user/scripts/Db_nss_mysql-`date ...
prado's user avatar
  • 940
1 vote
1 answer
696 views

date doesn't accept its own output

What is the option for date to give output in a format acceptable to date --set ? I'm trying to remotely set the date, using the current computer clock of my workstation. ssh user@host sudo date --...
Ben Voigt's user avatar
  • 309