LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2017, 11:57 PM   #1
ashvini jamdar
LQ Newbie
 
Registered: May 2017
Posts: 10

Rep: Reputation: Disabled
E297: Write error in swap file


Hello

I am trying to edit .sh file getting below error.
how to resolved E297: Write error in swap file.

Can you please help me.

Thank You
Ashvini jamdar.
 
Old 05-11-2017, 01:02 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
With with editor, Vim? On what type of media?
 
Old 05-11-2017, 01:10 AM   #3
ashvini jamdar
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Stéphane Ascoët View Post
With with editor, Vim? On what type of media?
vim
 
Old 05-11-2017, 01:14 AM   #4
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
So that what I was thinking: for a reason or another it can't write in the swap file. Look at it, it's named like your .sh file but it begins with a dot next to it. Check that it's writable, that you don't have problemes on your FS...
 
Old 05-11-2017, 01:33 AM   #5
ashvini jamdar
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Stéphane Ascoët View Post
So that what I was thinking: for a reason or another it can't write in the swap file. Look at it, it's named like your .sh file but it begins with a dot next to it. Check that it's writable, that you don't have problemes on your FS...
The file has 777 permission.
but i want give -rwxrw-r-x. 1 permission to my file.
then i want edit this file.

please provide me solution

Thank you
Ashvini

Last edited by ashvini jamdar; 05-11-2017 at 01:41 AM.
 
Old 05-11-2017, 02:12 AM   #6
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
Post Strange problem

chmod 775
 
Old 05-11-2017, 02:27 AM   #7
ashvini jamdar
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Stéphane Ascoët View Post
chmod 775

Thank You for chmod 775.
I have created new same name(Edwards_Monitoring_Archive_Script.sh) file after that i have changed user and permission of that file.
still getting E297: Write error in swap file
"Edwards_Monitoring_Archive_Script.sh" 0L, 0C
Press ENTER or type command to continue

please help me about that.

Last edited by ashvini jamdar; 05-11-2017 at 02:54 AM.
 
Old 05-11-2017, 02:59 AM   #8
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
http://linuxtoolkit.blogspot.fr/2014...swap-file.html
 
1 members found this post helpful.
Old 06-03-2017, 01:05 AM   #9
ashvini jamdar
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Total number of running process count

Quote:
Originally Posted by Stéphane Ascoët View Post
Hello Team,

Can you please help me to find total number of running process count on specific date.

Thank You,
Ashvini.

Last edited by ashvini jamdar; 06-03-2017 at 01:21 AM.
 
Old 06-03-2017, 11:32 AM   #10
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,454

Rep: Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664Reputation: 664
A quick-and-dirty workaround is -n option
Code:
vim -n file
For a new unrelated question you better open a new thread.
 
Old 06-03-2017, 03:56 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,113

Rep: Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451Reputation: 6451
Quote:
Originally Posted by ashvini jamdar View Post
Hello Team
Can you please help me to find total number of running process count on specific date.
Can you please read the LQ Rules and "Question Guidelines"??? Open a new thread for a new question, and do basic research before posting a question. Also, you need to provide actual details on things. How, exactly, are you keeping track of processes running on an ongoing basis now, to give you something to search?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
E297: Write error in swap file kumarrbt Linux - General 3 08-25-2014 10:52 PM
[SOLVED] E297: Write error in swap file persistentd Linux - Newbie 4 12-01-2009 04:00 PM
VIM E514 & E297 Write Error hollie2119 Linux - General 1 02-01-2007 02:58 PM
Getting the error "E297 : Write error in swap file " sudhir_gunda Linux - General 3 12-29-2003 08:07 AM
"E297: Write error in swap file" :-( sudhir_gunda Linux From Scratch 2 12-29-2003 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration