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.
# get last seen value of ipad
lastseen=$(curl -s -X "GET"... (11 Replies)
Discussion started by: andysensible
2. UNIX for Dummies Questions & Answers
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. 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
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
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
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
1. rcp testfile server2:/db/tmp (Work ok, verified file... (6 Replies)
Discussion started by: jrowland
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
8. Shell Programming and Scripting
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
nawk -F "|" -v... (8 Replies)
Discussion started by: abdulaziz
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
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
RCP(1) BSD General Commands Manual RCP(1)
rcp -- remote file copy
rcp [-46p] source_file target_file
rcp [-46pr] source_file ... target_directory
The rcp utility copies files between machines. Each source_file, target_file, or target_directory argument is either a remote file name of
the form ``ruser@rhost:path'', or a local file name (containing no ':' characters, or a '/' before any ':'s).
The following options are available:
-4 Use IPv4 addresses only.
-6 Use IPv6 addresses only.
-p Cause rcp to attempt to preserve (duplicate) in its copies the modification times and modes of the source files, ignoring the
umask(2). By default, the mode and owner of target_file are preserved if it already exists; otherwise the mode of the source file
modified by the umask(2) on the destination host is used.
-r If any of the source files are directories, rcp copies each subtree rooted at that name; in this case the destination must be a
If path is not a full path name, it is interpreted relative to the login directory of the specified user ruser on rhost, or your current user
name if no other remote user name is specified. A path on a remote host may be quoted (using '', '"', or ''') so that the metacharacters
are interpreted remotely.
The rcp utility does not prompt for passwords; it performs remote execution via rsh(1), and requires the same authorization.
The rcp utility handles third party copies, where neither source nor target files are on the current machine.
cp(1), ftp(1), rlogin(1), rsh(1), hosts.equiv(5)
The rcp command appeared in 4.2BSD.
Does not detect all cases where the target of a copy might be a file in cases where only a directory should be legal.
Is confused by any output generated by commands in a .login, .profile, or .cshrc file on the remote host.
The destination user and hostname may have to be specified as ``rhost.ruser'' when the destination machine is running the 4.2BSD version of
October 16, 2002 BSD