-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
script
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 04:27 AM
03-13-2009 04:27 AM
script
script
when work remotely my unix secure crt session becomes hung after 30 min inactive session.can some one tell me a small script that can keep my session alive.
any idea is welcome
thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 04:38 AM
03-13-2009 04:38 AM
Re: script
Re: script
If it is getting disconnected then you need to look at the timeout(TMOUT) value.
The easiest one would be ping the server.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 04:44 AM
03-13-2009 04:44 AM
Re: script
Re: script
you try by nohup , by running you script back round.
Example:-
vi osbackup.sh
make_tape_recovery -AvI -x inc_entire=vg00 -a /dev/rmt/0mn
# nohup ./osbackup.sh &
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 05:57 AM
03-13-2009 05:57 AM
Re: script
Re: script
Talk to your network admin and see if the timeout value can be extended.
Also, sometimes, leaving a vi session open on the terminal prevents the timeout taking effect but not always. You definitely can try that.
Or, also something like this can keep your connection alive but again, not always:
while true ; do
echo "I'm alive"
sleep 60
done
I said not always, because some routers/firewalls, look for bidirectional activity to stay alive not unidirectional.
The only thinl that you can do is to record a windows macro of some sort (autohotkey windows program comes to mind to accomplish this) and send the command "ls" to your unix terminal window every few minutes, definitely more frequently than 30 minutes to prevent the timeout.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 06:00 AM
03-13-2009 06:00 AM
Re: script
Re: script
A small suggestion..hope it will work.
First login in the server through Secure CRT..Then click on - Options or Alt+o - Session option or Alt+s.
A session Option page will appear..in this page again click on Options and in right side pane check the "send string" box and give -. And also check the attchement.
Thnx...Farhan
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 06:07 AM
03-13-2009 06:07 AM
Re: script
Re: script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-13-2009 07:09 AM
03-13-2009 07:09 AM
Re: script
Re: script
Just an idea.
UNIX because I majored in cryptology...
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP