04-22-2009
error using scp
hello fiends ,
i am facing this for the first time regarding the scp.
when i am copying file1 from one machine to another machine in the same LAN
scp file1 192.168.4.40:/root
i am geting the error as
/root/.bashrc: line 17: toilet: command not found
/root/.bashrc: line 19: toilet: command not found
/root/.bashrc: line 21: toilet: command not found
file contents of /root/.bashrc is as below
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\h:\w\$ '
umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
can you let me know whats going wrong.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am looking for a way to transfer entire folders from a Unix server to my mac OS X system. I am trying to use scp with the command % scp -r (user@host):dir . and it diesn't seem to work. I get the error "protocol error: mtime.sec not delimited" Thanks for any help. (6 Replies)
Discussion started by: lorcet222
6 Replies
2. Solaris
I am trying to transfer a file between two Solaris machines using SCP. I tried different options, like forcing remote host to use SCP version 1 and SCP version 2. Using IP address for remote host instead of hostname. But nothing helps. Moreover, there doesnt seem to be much of a help available on... (2 Replies)
Discussion started by: jayesch
2 Replies
3. UNIX for Dummies Questions & Answers
I'm using cygwin scp to copy a file down from a AIX server to my laptop.
I've got he script working from the command line. The file I'm copying is Processed.Apr21 and I'm copying it to /event_transfer folder on my laptop.
scp username@149.131.224.104:/var/Tivoli/logs/Events/processed.Apr21... (3 Replies)
Discussion started by: cav.turbo
3 Replies
4. Shell Programming and Scripting
Hi -
I've a UNIX script which contains a scp command to copy a file to another server: scp <source path> <destination server:/path>
(scp dir1/file1.dat server2:/dir1/subdir1)
The job which is running this script is getting failed with error message "Remote copy Failed - Error Code: 7". When... (0 Replies)
Discussion started by: salselor
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
How to use ftp/scp command with password containing @ symbol.
Ex: ftp xyz:xyz@sun@11.211.111.11:/export/backups/
Exception I got: unknown host or invalid literal address
Note: I dont want to change the password.
Regards,
Vinodh' Kumar (5 Replies)
Discussion started by: vino_hymi
5 Replies
6. UNIX for Dummies Questions & Answers
My script is like
STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 100);
printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm')
touch $STAMP /sasdata/copydata/
find /sasdata/copydata -type f ! -newer /sasdata/copydata/ -print > output3.txt
awk '{print "scp ... (6 Replies)
Discussion started by: tushar_spatil
6 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am trying to do scp using the following script:
#!/usr/local/bin/bash
BUILDDATE=20120220
for line in `cat arch_host_plat_src_dest`
do
src=`echo $line | cut -d: -f4`
dest=`echo $line | cut -d: -f5`
echo scp -p /builds/${BUILDDATE}/Integration/$src ... (1 Reply)
Discussion started by: Technext
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am trying to copy files from one server to other using the below code.
scp -B -p user@remoteserver:/tmp/abc.txt /landing/files
The above command is failing with error
You're not allowed to run 'scp -p -f /tmp/abc.txt '
When I am using scp -B -p , why am I getting error msg as scp... (2 Replies)
Discussion started by: Nikhath
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
Every time my script runs I want it to go and copy all the files from a remote server directory to my local directory. Whenever I have files in the remote directory the command scp -p $proxy_user@$proxy_server:"$remote_dir/*" ${local_dir}
executes with 0; when I have no files in the... (2 Replies)
Discussion started by: rdogadin
2 Replies
10. AIX
Help needed for scp error.
I tried to scp a file from a server to another with scp command, but I receive a error message "Non-Interactive Shell Disallowed!". I do not know what did I do wrong, please assist.
I have done this before on other servers and have never faced this error.
Both are... (2 Replies)
Discussion started by: kwliew999
2 Replies
LEARN ABOUT PHP
fs_newalias
FS_NEWALIAS(1) AFS Command Reference FS_NEWALIAS(1)
NAME
fs_newalias - Creates a new alias for a cell
SYNOPSIS
fs newalias [-alias] <alias name>
[-name] <cell name> [-help]
DESCRIPTION
The fs newalias command is used when the AFS Cache Manager is in Dynamic Root (-dynroot) mode. It creates a symbolic link in /afs from an
alias to the full name of the cell. It also creates a symbolic link from the alias prepended with "." to the full name of the cell
prepended with ".", the convention for access to the read/write version of the "root.cell" volume of that cell.
This command is used to supplement aliases created via the CellAlias configuration file when afsd starts.
Traditionally, these aliases would be created by the local AFS administrator by creating symbolic links in the "root.afs" volume. Such
symlinks do not appear when Dynamic Root is enabled because, with Dynamic Root, the Cache Manager does not mount or look at the "root.afs"
volume. This alias capability is a replacement that allows such short names to be created under client control.
CAUTIONS
Aliases created with fs newcell are only temporary and will be lost when the AFS Cache Manager is restarted or the client machine is
rebooted. In order to make the alias permanent, it must be put into the CellAlias file.
There is no way to remove an alias once created without restarting the AFS Cache Manager.
OPTIONS
-alias <alias name>
This is the short name to which the user wants to map the real cell name.
-name <cell name>
This is the real cell name.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
This command has no output.
EXAMPLES
There are two ways to call fs newalias:
% fs newalias openafs openafs.org
% fs newalias -alias openafs -name openafs.org
Both of the above examples create an alias "openafs" for the cell "openafs.org". Two links will be created in /afs:
/afs/openafs -> /afs/openafs.org
/afs/.openafs -> /afs/.openafs.org
PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser root.
SEE ALSO
afsd(8), CellAlias(5), fs_listaliases(1)
COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2012-03-26 FS_NEWALIAS(1)