hit the delete key to exit, do not press 6). crontab Modifying the default editorCrontab default editor for Nano. Modify the crontab default editor for VI or other editor. French one: Export editor= "/usr/bin/vim"; CRONTAB-E two: Execute command: Select-editor then select Editor.5. Working with instancesExample 1: The command command executes every 1 minutes:* * * * *Command Instance 2: the 3rd and 15 minutes of the hour are executed:3, the* * * *Command Instance 3: Execute commands at 3rd and
(keyboard) and loads them into crontab.
-E: Edit the contents of a user's crontab file. If you do not specify a user, edit the current user's crontab file.
-L: Displays the contents of a user's crontab file, or displays the contents of the current user's crontab file if no user is specified.
-r: Deletes a user's crontab file from the/var/spool/cron directory, and deletes the current user's crontab file by default if no user is specified.
-I: Give a confirmation prompt when deleting a user's
* command
3rd and 15 minutes of every two days from 8 o'clock in the morning to 11.
3,15 8-11 * * 1 command
The 3rd and 15 minutes of each Monday 8 o'clock in the morning to 11 are executed.
* * * * */ETC/INIT.D/SMB restart
21:30 Restart SMB per night
4 1,10,22 * */ETC/INIT.D/SMB restart
4:45 restart
On the Internet, I often see the house slaves posting so bitter that since I bought a house, my mortgage has been overwhelmed, and I want to get up in the morning and owe my bank 100 yuan, not only does the house slaves greatly reduce their living standards in material terms, but also causes their mental distress and their mental health to be greatly affected.
It can be seen that housing loans are currently the biggest expense of most home buyers, a
of limited effect on purchase restrictions, it is imperative to "recognize houses and not recognize loans.
Only the stimulus method exceeds expectation. The "Central four items" also proposes that, in cities that have canceled or not implemented the "purchase restriction" measures, families that have two or more houses and have settled the corresponding housing loan, in addition, when applying for loans to
of limited effect on purchase restrictions, it is imperative to "recognize houses and not recognize loans.
Only the stimulus method exceeds expectation. The "Central four items" also proposes that, in cities that have canceled or not implemented the "purchase restriction" measures, families that have two or more houses and have settled the corresponding housing loan, in addition, when applying for loans to
, for a natural user to provide a unified credit line, in two channels have opened the particle loan users, in the hand Q and micro-letter can borrow money, but two of the total amount of loans on the platform must not exceed the particle credit limit
Attached: Recently, FAW Toyota and micro-public banks in Beijing to hold a press conference, the two sides announced that the financial management and car consumption in the Internet platform for Cros
the following command:
# Yum install net-Tools
The reason is that ifconfig is out of date and can be queried using ip addr or IP link.
I chose file and printer server mode again to avoid interference. In this mode, you can run the ifconfig command.
2. Install samba
Run the following command:
# Yum-y install samba-client samba-common
After the installation is complete, run rpm-Qa | grep "Samba" to ensure that the installation is successful.
650) This. width = 650; "Title =" 1.jpg" alt = "wkiom1q
every Monday.
Command:
3, 15 8-11 ** 1 command
Instance6:Restart smb at every night
Command:
30 21 ***/etc/init. d/smb restart
Instance7:Restart smb at on the 1st, 10th, and 22th of every month
Command:
45 4, 10, 22 **/etc/init. d/smb restart
1 Samba introduction Samba (SMB) is a network server used for sharing files between Linux and Windows. Samba can be used for sharing files between Windows and Linux, it is also used for file sharing between Linux and Linux. However, for file sharing between Linux and Linux, the Network File System NFS is better, and NFS also needs to set up servers; we all know that each machine in the Windows network can be a file sharing server or
1 Samba Introducti
or 7) or Sun,mon,tue,wed,thu,fri,sat//days of the Week (0-6) or English shorthand for the use of the week# | | | | |# * * * * * * user-name command to be executed//username: Who will perform this task command to be executed: the command to execute4) crontab Command parameters:-U: Specify user-E: Editing a user scheduled task-L: Displays the contents of a user's scheduled tasks-R: Delete a user's scheduled tasks-I: Prompt for confirmation when deleting user files5) Example:Example 1: The command
Instance 2: the 3rd and 15 minutes of the hour are executed:3, the* * * *Command Instance 3: Execute commands at 3rd and 15 minutes from 8 o'clock in the morning to 11:3, the 8- One* * *Command Example 4: Every two days from 8 o'clock in the morning to 11 points in the 3rd and 15 minutes of the execution of the commands:3, the 8- One*/2* *Command Instance 5: Every Monday from 8 o'clock in the morning to 11 in the 3rd and 15 minutes execution of commands:3, the 8- One* *1Command instance 6:21:30
comma-separated value, for example, "1,2,5,7,8,9"Middle Bar (-): An integer range can be represented by a middle bar between integers, such as "2-6" for "2,3,4,5,6"Forward slash (/): You can specify the interval frequency of the time with a forward slash, such as "0-23/2", which is performed every two hours. A forward slash can be used with asterisks, such as */10, if used in the minute field, which means that it executes every 10 minutes.5. Use instance Instance 1: Executes command commands ev
the morning to 11 points in the 3rd and 15 minutes of the execution of the commands:3, the 8- One*/2* *Command Instance 5: Every Monday from 8 o'clock in the morning to 11 in the 3rd and 15 minutes execution of commands:3, the 8- One* *1Command instance 6:21:30 restart SMB command per night: - +* * * */etc/init.d/SMB Restart Instance 7:1 per month,Ten, the 4:45 restart
I. Samba provides a CIFS protocol for shared files1.SMB file sharing, common internal file system (CIFS), also known as Server Information Block (SMB), is a standard file and Printer Sharing system for Microsoft Windows Servers and clients.2.Samba servers can be used to share Linux file systems as CIFS/SMB Network file shares and to share Linux printers as CIFS/
Start
To see if the Crontab service is set to boot, execute the command:
Ntsysv
Join the boot auto start:
Chkconfig–level Crond on
Base command:
-e indicates editing the current crontab
-L indicates that the list displays the current crontab task
-R indicates deletion of the current user's crontab
-I gives prompt information when deleting crontab
5. Working with instances
Example 1: Execute command every 1 minutes
Command:
* * * * command
Example 2:3rd and 15 minutes per hour execution
Comm
* command
Instance 5:3rd and 15 minutes per Monday from 8 o'clock in the morning to 11.
Command:
3,15 8-11 * * 1 command
Example 6:21:30 restart SMB per night
Command:
* * * */ETC/INIT.D/SMB restart
Instance 7:4:45 Restart SMB for 1, 10, 22nd per month
Command:
4 1,10,22 * */ETC/INIT.D/SMB restart
Ex
Crontab can perform the actions you want to do regularly.Edit directly with crontab commandCrontab-u//Set a user's Cron service, which is required by the general root user when executing this commandCRONTAB-L//list details of a user's cron serviceCrontab-r//Delete a user's cron serviceCRONTAB-E//Edit a user's cron service
Some examples of crontab files:
code is as follows
copy code
* * */ETC/INIT.D/SMB Restart The
is completeUsing Cat/var/log/cron.log to view the log, we can see that craontab is performing my configurationMy script is to redirect a date-named file and output it out. But why can't you see the file appear?And then the problem was found, and it was me. No path specifiedAfter you specify the path, everything is fine. At first I thought that the problem of environment variables, fixed in the second line plus the path.Here's a summary of common CRAONTAB commands:* * * * *command executes every
by the Samba system host are mapped to guest users, so that the user name and password are no longer required for other hosts to access the Samba shared directory. Add Guestok = Yes in the Define share section.Finally, shared filesExample 1: Next we create a directory (for example:/common) and share through Samba outputWith the SMB shared/common directory, the Samba server must be a member of the staff workgroup, the share name must be common, and on
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.