- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP , Processor Speed,LP
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
12-02-2000 03:21 AM
12-02-2000 03:21 AM
FTP , Processor Speed,LP
This is sundara rajan.So,If anybody can help me by answering the following queries,
please try it.
1)how can we do automatic file transfer
using FTP .Is the only way is to use
.netrc file or is there anyother way
2) how can we find out the processor speed
in a hp-9000 system without rebooting the
machine using the command
3)is it possible for each and every user
be assigned a different defualt printer
destination.how it can be done
ok.i am waiting for ur answers
bye
sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2000 04:42 AM
12-02-2000 04:42 AM
Re: FTP , Processor Speed,LP
alias lp 'lp -d$myprn'
alias lpr 'lpr -d$myprn'
alias lpq 'lpq -d$myprn'
This will not work however for programs that call the file /usr/bin/lp which many do. The next step would be to mv lp to a different name and script lp looking for each users defined printer.
Next for the automated ftp....
If you search the forums, there are many examples of scripting ftp, which alleviates the dependancy on .netrc.
I use the netrc file though, but here's how and why....
add ftpuser1 to the system for automated ftp. Add ftpuser1 to /usr/lib/cron/cron.allow
make ~ftpuser1/.netrc and init macro which does
bin
prompt
case
lcd incoming
cd host.outgoing
mget *
lcd outgoing
cd host.incoming
mput *
bye
Then schedule a cron job as ftpuser1 to fire off at whatever time as just
01 22 * * * /usr/bin/ftp host
It is very easy to do, and works pretty well withouth lots of scripting or installing expect. Make sure though that ftpuser1 has a legit system credentials and a good password as this user can fire off cron jobs.
As for the processor speed there is a way, and I can not tell you off the top of my head. Search the forums though and I am sure you will find it.
HINT: uses adb and kernel.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2000 05:50 AM
12-02-2000 05:50 AM
Re: FTP , Processor Speed,LP
For processor speed, use SAM -> Performance, or do:
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2000 09:24 AM
12-02-2000 09:24 AM
Re: FTP , Processor Speed,LP
A better way is to use a shell script 'here' document to perform the task. Here's a link to recent discussions:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xf4677e990647d4118fee0090279cd0f9!0,00.html
As far as defeult lp printers, there is a really easy and versatile method: $LPDEST. When LPDEST is set, all lp commands treat the named print queue as the default. This means that each user can define their own default printer, and also change it without logging back in again:
export LPDEST=ljet5bay6
then just print away...
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2000 09:40 AM
12-02-2000 09:40 AM
Re: FTP , Processor Speed,LP
An automatic FTP routine is in the format of:-
-------------cut here -----------------
ftp -n
user
prompt
put
quit
End_of_Ftp
-------------cut here -----------------
HTH
Paula