Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-18-2014, 08:36 PM   #1
Senior Member
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,748

Rep: Reputation: 49
fsck and reboot at certain time, but able to log out of ssh session and not kill it

So if I want to do a fsck and restart on a RHEL server, it looks like I need to do

touch /forcefsck
shutdown -r 03:00

But do I need to do a
shutdown -r 03:00 &
or something so I can close my SSH session through Putty, without killing the scheduled reboot?
Old 11-19-2014, 07:17 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
tune2fs with -c and -C to set fsck requirements
cron for the scheduling
Old 11-19-2014, 07:24 AM   #3
Senior Member
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,748

Original Poster
Rep: Reputation: 49
Right. I was talking more about a one-time deal, and it seems that the & is needed at the end of the shutdown command.


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
SSH concurrent session limit and idle session time out lasygsd Linux - Newbie 3 10-30-2014 08:56 AM
Two Processes for an ssh Session or Log-in devUnix Linux - Networking 1 07-29-2013 06:02 AM
SSH Session slows down over time while connected thebombzen Linux - Software 1 05-09-2013 11:45 AM
[SOLVED] Trying to kill a Firefox window through remote ssh session JimiSc Linux - Software 8 06-26-2012 02:12 AM
Log reboot time? x5452 Linux - Software 2 03-30-2004 09:00 PM > Forums > Linux Forums > Linux - Newbie

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

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