11-30-2013
scp uses ssh.
You can avoid multiple invocation (and authentication) by means of tar over ssh.
With rsync (extra package, usually in /opt/csw/bin/) you can do the same, and further avoid unnecessary copying (if destination file is already present and identical).
Finally you can generate ssh keys that can do authentication.
Details have been posted in several other articles already.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody.
Result of my script is coming out to be as mentioned in the below format.
Output::
Modified records are as follows
=
=
@abc.core.admin.jonas_user@ = value221
@abccsd.core.admin.pltf_name@ = valuee991
=
=
#######################################
I need to get... (3 Replies)
Discussion started by: shahidbakshi
3 Replies
2. Shell Programming and Scripting
Hi all,
I need some help in my script...
I need to login into multiple servers from one Unix box and need to login as a superuser account and then I need to perform some actions on the server. For this, i'll use for loop to provide the server names to the script, but for every login as a... (8 Replies)
Discussion started by: raghu.iv85
8 Replies
3. Red Hat
Hi All,
I have created an RPM installer and installed it via ROOT user & which works fine on Red Hat.
But the problem oocurs when a non root users try to run that application (from their account), it never got executed (being it has the execute permission i.e. chmod a+x somefile.sh).
I want... (6 Replies)
Discussion started by: jw_amp
6 Replies
4. UNIX for Dummies Questions & Answers
Hi I m trying to take a console of linux machine using putty.
Whenever i connect to the machine and give password details to log into the machine it hangs for some time and then it allow the login.
I m totally clueless why it is happening suddenly .
---------- Post updated at 01:14 AM... (1 Reply)
Discussion started by: pinga123
1 Replies
5. UNIX for Advanced & Expert Users
i have found a way to start vm with commanda as follows -
VBoxManage startvm <uuid>|<name>
it is installed inside oracle virtualbox.
in vmware we have a way to do this --
$vmware-cmd -v -H localhost -U user -P password /var/lib/vmware-server/Virtual\ Machines/Ubuntu/Ubuntu.vmx... (0 Replies)
Discussion started by: upvan111
0 Replies
6. Shell Programming and Scripting
I have a strange issue.
(awk '$3 == "nfs" { cnt++ }; END { print cnt }' /etc/fstab)
This is giving different count each time.
To test this, tried the one here
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
151
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
145... (6 Replies)
Discussion started by: sureshmsi
6 Replies
7. Shell Programming and Scripting
hi,
how can i pass a password automatically when a shell script is running.
i have shell script(runscript.sh) which call another shell script inside it as a different user.
runscript.sh contains
su - nemo -c "/bin/main_script.sh"
but when i execute "runscript.sh" it try to run... (7 Replies)
Discussion started by: Little
7 Replies
8. Web Development
Hi all,
I am trying to find a rewrite rule that can help me with the following situation.
So I am currently on a page which has a URL:
http://www.test.mobile.com/#!/shop/phones/max-plus/features/
Now when I hover over a certain link, I can see that it will goto:
<a... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies
9. UNIX for Beginners Questions & Answers
Hello Team,
Please help me to solve my Problem,
By mistake, I give full permission to /(root) directory. by using the following command "chmod -R 777 /"
after this, the client asks for the password to login via ssh. Before that, I an able to Login without a password.
Please help me to retrieve... (5 Replies)
Discussion started by: Shubham1182
5 Replies
10. UNIX for Beginners Questions & Answers
Hi,
We have two LDAP servers. Whenever we get a ticket to reset the password, we login to LDAP primary server and reset the password. For below example, I logged into primary LDAP server and resetting password to john to Welcome123#
We are giving this work to tier-1 team, so that they can reset... (1 Reply)
Discussion started by: ron323232
1 Replies
LEARN ABOUT FREEBSD
sigreturn
SIGRETURN(2) BSD System Calls Manual SIGRETURN(2)
NAME
sigreturn -- return from signal
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigreturn(const ucontext_t *scp);
DESCRIPTION
The sigreturn() system call allows users to atomically unmask, switch stacks, and return from a signal context. The thread's signal mask and
stack status are restored from the context structure pointed to by scp. The system call does not return; the users stack pointer, frame
pointer, argument pointer, and processor status longword are restored from the context. Execution resumes at the specified pc. This system
call is used by the trampoline code and longjmp(3) when returning from a signal to the previously executing program.
RETURN VALUES
If successful, the system call does not return. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
The sigreturn() system call will fail and the thread context will remain unchanged if one of the following occurs.
[EFAULT] The scp argument points to memory that is not a valid part of the process address space.
[EINVAL] The process status longword is invalid or would improperly raise the privilege level of the process.
SEE ALSO
sigaction(2), setjmp(3), ucontext(3)
HISTORY
The sigreturn() system call appeared in 4.3BSD.
BSD
September 6, 2013 BSD