Solved crontab save changes?

Currently reading
Solved crontab save changes?

259
28
NAS
DS1019+
Mobile operating system
  1. Android
this might be an obvious question, but when you're in the terminal inside a docker, and you're editing a cronjob via crontab, how do you save the changes and exit?
i've changed the schedule from once a week to every day, but now i can't seem to see any way to actually save and exit.

i'm asssuming there is a key shortcut or something?
 

fredbert

Moderator
NAS Support
Subscriber
1,859
756
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
:wq

?? If it's a vi editor. Did you use x to cut a character, i to insert, etc? Then it's :wq for write and quit.
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
this is what i'm sitting at

Capture.JPG
 

fredbert

Moderator
NAS Support
Subscriber
1,859
756
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS

fredbert

Moderator
NAS Support
Subscriber
1,859
756
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
That's very odd and messing with 30 years of muscle memory.


You might have to hit Escape twice before entering the ':wq' command. Try ':w' and then ':q'. To exit and not-write changes it should be ':q!'
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top