The example in this article describes how Python obtains the running directory and the current script directory. Share to everyone for your reference. The implementation method is as follows:
Import osimport sys# Run directory Currentpath =
#!/bin/sh#please user the full Path DirectorySitename= "Www.sijisiji.com"prefix= ' Date +%y%m%d 'Cur_bak_name=${sitename} "_" ${prefix} "_bak"Cur_bak_name_gz=${cur_bak_name} ". tar.gz"Backupdir= "/home/backup"Sitedir= "/home/wwwroot"if [!-f
The path to get the current file today generally uses the following two functions.GETCWD () function
GETCWD-Get Current working directory
DescribeString GETCWD (Invalid)Gets the current working directory.
return valueReturns the success on the
I. Directory structureThe naming rules for the directory structure are English letters or abbreviations. Write down a Word file in readme.doc under each directory, indicating the file situation in the directory, including the file name, main
VBS Function PROCEDURE: 1. Call wget: Download all pages of Web site to this script directory ... 2. Scan all files in this script directory ... 3. Read all pages in this script directory, match picture URL address ... 4. Save all picture URL
Preface
After a while of hadoop deployment and management, write down this series of blog records.
To avoid repetitive deployment, I have written the deployment steps as a script. You only need to execute the script according to this article, and
Dynamic | specification | Web page one, directory structure
The naming rules for directory structures are in English letters or phonetic abbreviations as directory names. Specify a Readme.doc Word file in each directory, stating the file under the
Linuxiptables: backs up and recovers instances from different machines. 1. the configuration file location of iptables is:/etc/sysconfig/iptables master control machine: a sub-machine in service running. backup machine: when the master machine fails,
CGI script installation in Win2000 and winnt
(Download this tutorial)
I. Preparations
Install IIS, which is an Internet Information Service component
Install the instmsi.exe Program
Linuxiptables: backs up and recovers instances from different machines. 1. the configuration file location of iptables is:/etc/sysconfig/iptables master control machine: a sub-machine in service running. backup machine: when the master machine fails,
2014-12-27 Created by Abalone newFirst, restart the database
Step1. Go to the Script directorysu -pwd/u1/vis/visora/db/tech_st/11.1. 0/appsutil/scripts/prod_paleonode1Step2. Launch the App./addbctl.sh StartStep3. Start monitoring./addlnctl.sh
DescriptionHere I only talk about the most basic things. After all, I just started using Linux. And I don't have any good notes to use, so I thought I would simply write a blog. But written blog there is the risk of being seen by others, but it
When installing the linux File Server, skip the troubleshooting tutorial-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Please try your best to use the tree mode.
Troubleshooting
Amin yuchao86@gmail.com
Based on the PHP-5.3.8 source code to share the PHP kernel structure, in order to better understand the PHP script execution process and write efficient script.
The directory structure is as follows:
1. Build and
Linux self-starting service check-Linux Enterprise Application-Linux server application information. The following is a detailed description. In linux, each service has a corresponding running script, which can be used to set the startup, stop,
MongoDB automatic installation and deployment this article is divided into two parts: MongoDB automatic installation directory description; MongoDB automatic installation script content. The first part of MongoDB automatic installation script
BrieflyInstallShield has built-in support for MySQL and Oracle. However, this functionality is implemented through ODBC, which is very strict in the format of SQL scripts, so the scripts that have been tested by the official client are often given
Instructions on executing shell scripts in hive #! /Usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. see the NOTICE file distributed with # this work for additional information
ProjkyAddin is a ManagementStudio plug-in. The installation package is more than 500 kb and is compatible with SSMS2005, SSMS2008, SSMS2008R2, SSMS2012, and SSMS2014, this function provides a shortcut for the script files on the hard disk in the
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.