เคยเจอไหมครับเวลา edit โค้ด อะไรซักอย่างด้วย editor (เช่น vim) จะเจอกัับข้อความ(ที่ไม่อยากจะเจอ) ดังนี้
E325: ATTENTION
Found a swap file by the name “.config.inc.php.swp”
owned by: root dated: Wed Aug 25 12:12:43 2010
file name: /var/www/vhosts/xxxxxxxx.com/httpdocs/config.inc.php
modified: no
user name: root host name: xxxxxx.com
process ID: 5133 (still running)
While opening file “config.inc.php”
dated: Wed Aug 25 13:54:53 2010
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use “:recover” or “vim -r config.inc.php”
to recover the changes (see “:help recovery”).
If you did this already, delete the swap file “.config.inc.php.swp”
to avoid this message.
Swap file “.config.inc.php.swp” already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
E325: ATTENTIONFound a swap file by the name “.config.inc.php.swp” owned by: root dated: Wed Aug 25 12:12:43 2010 file name: /var/www/vhosts/xxxxxxx.com/httpdocs/config.inc.php modified: no user name: root host name: xxxxxxxx.com process ID: 5133 (still running)While opening file “config.inc.php” dated: Wed Aug 25 13:54:53 2010 NEWER than swap file!
(1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed. If this is the case, use “:recover” or “vim -r config.inc.php” to recover the changes (see “:help recovery”). If you did this already, delete the swap file “.config.inc.php.swp” to avoid this message.
Swap file “.config.inc.php.swp” already exists![O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
พอเจอแล้วก็งงเลยดิ มันขึ้นมาทำอะไร?
วิธีแก้ไม่อยากครับ อย่างเช่นผมใช้คำสั่งเรียก editor (vim) ไฟล์ config.inc.php
จะเจอกับข้อความด้านบนครับ สังเกตนิดนึงตรง
Swap file “.config.inc.php.swp” already exists!
มันบอกว่ามีไฟล์ที่เป็น swap file สร้างขึ้นมาชื่อ .config.inc.php.swp ถ้าไม่อยากเจอข้อความนี้อีกก็ให้
ลบไฟล์ชื่อดังกล่าวซะก็จะหมดปัญหาข้อความมากวนใจแล้วครับ