- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Batch file (.bat)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 05:23 AM
06-12-2006 05:23 AM
Batch file (.bat)
How to write a batch file which
1)opens a telnet session ,
2)kick starts a process (shell script), which will be running in background.
3)disconnect telnet.
this way i can double click the batch file to run this process.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 05:35 AM
06-12-2006 05:35 AM
Re: Batch file (.bat)
By default .bat files are batch executables on Windows.
They don't mean a thing to Linux or Unix.
To find a shell script that does this, I suggest the itrc search function.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 05:42 AM
06-12-2006 05:42 AM
Re: Batch file (.bat)
The telnet which ships with Windows is not scriptable. You will need a third-party tool, such as Expect:
http://expect.nist.gov/#windows
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 09:23 AM
06-12-2006 09:23 AM
Re: Batch file (.bat)
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 09:32 AM
06-12-2006 09:32 AM
Re: Batch file (.bat)
John ( also an intp!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 11:39 PM
06-12-2006 11:39 PM
Re: Batch file (.bat)
You could also create an account on your HP-UX box for the express purpose of running this shell script. Reference the script in the new user's ~/.profile (use 'nohup <scriptname> &'). Add 'exit 0' after the reference so that the session exits after the script begins running.
The script will run whenever the user logs in. This way, you just need to script the client login process, without passing any commands.
However, you will still need a third-party tool to automate the login.
PCS