- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: output from commands
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
01-30-2005 03:32 AM
01-30-2005 03:32 AM
output from commands
i have ph-ux version 10.20
when i xecute a command like ll (as example).
i can redirect the output to file as :
******
ll>f1
******
is there any way to redirect this output to
another PC(running Windows).
to be more clear.
i can write script that and make it run every 1 houre.
i want to receive the output from this script in my PC(Windows).
is there any way to do that?
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 04:07 AM
01-30-2005 04:07 AM
Re: output from commands
There is no simple command to do this but
I think that you can for example do:
1. If yoy have configured mail system you can
send output via mail
ll | mail adres@a.b.c
2. You can redirect command output to file and every hour copy by runnning rcp or scp or ftp from PC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 04:09 AM
01-30-2005 04:09 AM
Re: output from commands
01. Use sendmail to send it across as an email . So that u can recieve it an windows.
02. Install samba server so that you can map one directory from unix server on ur windows box. write the log onto this directory ..
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 04:14 AM
01-30-2005 04:14 AM
Re: output from commands
but is there way accros network?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 04:16 AM
01-30-2005 04:16 AM
Re: output from commands
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 04:22 AM
01-30-2005 04:22 AM
Re: output from commands
inteact with windows client / server.
cliet (Windows)send request
server (HP-UX) response
what i need ?
i have a good knowledge with programming languages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 04:25 AM
01-30-2005 04:25 AM
Re: output from commands
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 05:21 AM
01-30-2005 05:21 AM
Re: output from commands
but i don't know how on unix
can u tell me from where i start?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 05:41 AM
01-30-2005 05:41 AM
Re: output from commands
the script output as suggested by someone else.
Another easy solution would be to enable ftp server
on the PC and have the script in HP-UX box
automatically ftp this to PC.
If you want to take this oppertunity to learn network
programming on Unix, then you should be looking at
the "UNIX Network Programming" by W Richard
Stevens. The following URL has a link to the source
code of all the example in the book that you can
reuse.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 05:49 AM
01-30-2005 05:49 AM
Re: output from commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 06:33 AM
01-30-2005 06:33 AM
Re: output from commands
i already made ftp partition on my pc
and now i can send files from unix to my PC.
when i try to write script as :
****************************
ftp IP_address user user_name account paaswd
****************************
it make error
is there way to write a parameter for login
in script and run it? without
ftp prompt appear?
thankx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 06:48 AM
01-30-2005 06:48 AM
Re: output from commands
open $1
user $2 $3
prompt off
bin
put $4
quit
END
From unix to windows
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 07:07 AM
01-30-2005 07:07 AM
Re: output from commands
that is i want
many thankx
but can you explain the meaning of <
and i write the script as :
***********************
ftp -n << END
open IP_address
user user passwd
put f1
bye
***********************
and run ok
why you use prompt off? (or that was explain to me)?
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 12:39 PM
01-30-2005 12:39 PM
Re: output from commands
This script must be
***********************
ftp -n << END
open IP_address
user user passwd
put f1
bye
END
***********************
END is mark point. It likes "begin" and "end" in VB. It is used for identify where is first ftp command and last ftp command.
NOTE: Using ftp is smarter than mail. but you must install FTP server on PC (recommand IIS).
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 01:59 PM
01-30-2005 01:59 PM
Re: output from commands
For example.
ftp> mput *
mput 51434s.pdf?
If you want your script auto pass this step you must set
ftp>prompt off
NOTE: IF YOU PUT OR GET BINARY FILE YOU MUST SET FTP TRANFER IN BINARY MODE BY TYPING:
ftp>bin
so that full script are:
#############################
ftp -n << END
open IP_address
user user passwd
prompt off
bin
put f1
bye
END
###########################