10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I was wondering if I could get some feedback on my script to grab time from our MDM... I blocked out all of the important stuff. I really appreciate any guidance, since I am long out of practice.
#!/bin/bash
serial=$1
# get last seen value of ipad
lastseen=$(curl -s -X "GET"... (11 Replies)
Discussion started by: andysensible
11 Replies
2. UNIX for Dummies Questions & Answers
Hi,
All the data are kept on Netapp using NFS. some directories are so fast when doing ls but few of them are slow. After doing few times, it becomes fast. Then again after few minutes, it becomes slow again. Can you advise what's going on?
This one directory I am very interested is giving... (3 Replies)
Discussion started by: samnyc
3 Replies
3. Shell Programming and Scripting
echo "1337124526" | perl -pe 's/(\d+)/easttime($1)/e'
the above gives a date and time.
how can i subtract the date and time given by this command, from the current present date?
can this be a one liner or as close to a one-liner as possible? (1 Reply)
Discussion started by: SkySmart
1 Replies
4. Shell Programming and Scripting
Dear experts
I have a 200MG text file in this format:
text \tab number
I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways?
I dont want to split the file since this one is already splitted.
I use this command: sort -fd file >... (12 Replies)
Discussion started by: voolek
12 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
We have 20 jobs are scheduled.
In that one of our job is taking long time ,it's not completing.
If we are not terminating it's running infinity time actually the job completion time is 5 minutes.
The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Discussion started by: ajaykumarkona
7 Replies
6. HP-UX
This just started happening.
I use the rcp command to copy a file from one server to another.
Now when I use the command, every other time I execute the exact same command I get the error: remshd: login correct
Example:
1. rcp testfile server2:/db/tmp (Work ok, verified file... (6 Replies)
Discussion started by: jrowland
6 Replies
7. HP-UX
Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies
8. Shell Programming and Scripting
Dear everyone...
thanks to this forum I am able to do everyday more and more complex scripts...but now I come up with problem with optimisation..
problem 1 - optimise:
here is my code:
while read number
do
nawk -F "|" -v... (8 Replies)
Discussion started by: abdulaziz
8 Replies
9. Solaris
Hi All,
I was installed new server M5000 on solaris10. I'am try to connect to server by ssh client (putty) after type user name and password the server take long time to return prompt to me about 30-60 second. any body can suggess me how to do it. (8 Replies)
Discussion started by: cesmk
8 Replies
10. Programming
Hi,
I'm pritty new to C, but a recent bug in a program i've been using has forced me to debug it. But I am unable to find a debugger that can act as a layer between the OS and the program to see whats going on..
The problem is that this piece of software makes a connection through localhost... (2 Replies)
Discussion started by: nephilimbe
2 Replies
RCP(1) General Commands Manual RCP(1)
NAME
rcp - remote file copy
SYNOPSIS
rcp [-p] [-x] [-k realm ] [-c ccachefile] [-C configfile] [-D port] [-N] [-PN | -PO] file1 file2
rcp [-p] [-x] [-k realm] [-r] [-D port] [-N] [-PN | -PO] file ... directory
rcp [-f | -t] ...
DESCRIPTION
Rcp copies files between machines. Each file or directory argument is either a remote file name of the form ``rhost:path'', or a local
file name (containing no `:' characters, or a `/' before any `:'s).
By default, the mode and owner of file2 are preserved if it already existed; otherwise the mode of the source file modified by the umask(2)
on the destination host is used.
If path is not a full path name, it is interpreted relative to your login directory on rhost. A path on a remote host may be quoted (using
, ", or ') so that the metacharacters are interpreted remotely.
Rcp does not prompt for passwords; it uses Kerberos authentication when connecting to rhost. Each user may have a private authorization
list in a file .k5login in his login directory. Each line in this file should contain a Kerberos principal name of the form princi-
pal/instance@realm. If there is a ~/.k5login file, then access is granted to the account if and only if the originater user is authenti-
cated to one of the principals named in the ~/.k5login file. Otherwise, the originating user will be granted access to the account if and
only if the authenticated principal name of the user can be mapped to the local account name using the aname -> lname mapping rules (see
krb5_anadd(8) for more details).
OPTIONS
-p attempt to preserve (duplicate) the modification times and modes of the source files in the copies, ignoring the umask.
-x encrypt all information transferring between hosts.
-k realm
obtain tickets for the remote host in realm instead of the remote host's realm as determined by krb_realmofhost(3).
-c ccachefile
change the default credentials cache file to ccachefile
-r if any of the source files are directories, copy each subtree rooted at that name; in this case the destination must be a directory.
-PN
-PO Explicitly request new or old version of the Kerberos ``rcmd'' protocol. The new protocol avoids many security problems found in
the old one, but is not interoperable with older servers. (An "input/output error" and a closed connection is the most likely
result of attempting this combination.) If neither option is specified, some simple heuristics are used to guess which to try.
-D port
connect to port port on the remote machine.
-N use a network connection, even when copying files on the local machine (used for testing purposes).
-f -t These options are for internal use only. They tell the remotely-running rcp process (started via the Kerberos remote shell daemon)
which direction files are being sent. These options should not be used by the user. In particular, -f does not mean that the
user's Kerberos ticket should be forwarded!
Rcp handles third party copies, where neither source nor target files are on the current machine. Hostnames may also take the form
``rname@rhost'' to use rname rather than the current user name on the remote host.
FILES
~/.k5login (on remote host) - file containing Kerberos principals that are allowed access.
SEE ALSO
cp(1), ftp(1), rsh(1), rlogin(1), kerberos(3), krb_getrealm(3), kshd(8), rcp(1) [UCB version]
BUGS
Rcp doesn't detect all cases where the target of a copy might be a file in cases where only a directory should be legal.
Rcp is confused by any output generated by commands in a .login, .profile, or .cshrc file on the remote host.
Kerberos is only used for the first connection of a third-party copy; the second connection uses the standard Berkeley rcp protocol.
RCP(1)