Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

app::nopaste::service::ssh(3pm) [debian man page]

App::Nopaste::Service::ssh(3pm) 			User Contributed Perl Documentation			   App::Nopaste::Service::ssh(3pm)

NAME
App::Nopaste::Service::ssh - copies files to your server using scp AUTHOR
Kevin Falcone "<falcone@cpan.org>" Thomas Sibley "<trs@bestpractical.com>" ENVIRONMENT VARIABLES
NOPASTE_SSH_SERVER The hostname to which you ssh. The left-hand side of the colon in the scp. For example: "sartak.org". NOPASTE_SSH_DOCROOT The path on disk for your pastes. For example: "public_html/paste". NOPASTE_SSH_WEBPATH The path for URLs. For example: "http://sartak.org/paste". NOPASTE_SSH_MODE Octal permissions mode to set for the temporary file before uploading. For example: 0644. NOPASTE_SSH_USE_DESCRIPTION Use the supplied description in the paste filename for easier identification of pastes. Defaults to the source filename, if any, but is overridden by an explicit "-d" or "--description" command line argument. APACHE CONFIGURATION RECOMMENDATIONS
The following is a recommended Apache configuration you can drop into ".htaccess" in your paste dir. RemoveHandler .cgi RemoveHandler .pl AddDefaultCharset utf-8 Options -ExecCGI -FollowSymLinks -Includes -MultiViews It prevents common means of script execution so that ".pl" and ".cgi" files won't run and defaults the character set to UTF-8 so browsers don't have to guess wrong. perl v5.14.2 2011-08-30 App::Nopaste::Service::ssh(3pm)

Check Out this Related Man Page

App::Nopaste::Command(3pm)				User Contributed Perl Documentation				App::Nopaste::Command(3pm)

NAME
App::Nopaste::Command - command-line utility for App::Nopaste nopaste - command-line utility to nopaste DESCRIPTION
This application will take some text on STDIN and give you a URL on STDOUT. You may also specify files as arguments, they will be concatenated together into one large nopaste. OPTIONS
-d, --desc The one line description of your paste. The default is usually the first few characters of your text. -n, --name Your nickname, usually displayed with the paste. Default: $NOPASTE_NICK then $USER. -l, --lang The language of the nopaste. The values accepted depend on the nopaste service. There is no mapping done yet. Default: perl. -c, --chan The channel for the nopaste, not always relevant. Usually tied to a pastebot in that channel which will announce your paste. -s, --services The nopaste services to try, in order. You may also specify this in $NOPASTE_SERVICES (space-separated list of service names, e.g. "Shadowcat Gist"). -L, --list List available nopaste services. -x, --copy If specified, automatically copy the URL to your clipboard, using the Clipboard module. -p, --paste If specified, use only the clipboard as input, using the Clipboard module. -o, --open If specified, automatically open the URL using Browser::Open. Browser::Open tries a number of different browser commands depending on your OS. --private If specified, the paste access will be restricted to those that know the URL. -q, --quiet If specified, do not warn or complain about broken services. perl v5.14.2 2011-08-26 App::Nopaste::Command(3pm)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

scp problem

I am using scp to get files from a Windows systemr to a Unix system. The ssh server is on Windows. The problem is that the file permissions for files that come from Windows are 700. Can any one help out with how I can set permissions to anything else? (6 Replies)
Discussion started by: blowtorch
6 Replies

2. Shell Programming and Scripting

automatic transfering of files using scp

I'm in the process of writing a shell script with copies files from one linux box to another using scp. I wish to run this through a cronjob so it cannot be interactive. This is what I have so far. #!/bin/sh PASSWD='passswd' dateset=$( date | awk '{print $2 $3 $6}') for dates in $dateset;... (1 Reply)
Discussion started by: tcruicksh
1 Replies

3. Shell Programming and Scripting

scp output fm script won't go to file

Have a script that scp's tar file to multiple other servers in a for loop. Need to set monitoring and notification on it for when it fails. Running this line of code in a 'for' loop... scp $SOURCE_RECOVERY_TARFILE ${HOST}:${CURR_RECOV_TARFILE} 2>&1 | tee ${MONFILE} Their are two outputs... (7 Replies)
Discussion started by: nmikes
7 Replies

4. Shell Programming and Scripting

to write the logs of scp

Hi Unix gurus, I created this script to automate the copying of files daily from one server to another using the scp command. --> #!/bin/ksh KEY="$HOME/.ssh/SSHKEY" if ;then echo "Private key not found at $KEY" >> $LOGFILE echo "* Please create it with \"ssh-keygen -t dsa\" *" >>... (1 Reply)
Discussion started by: gholdbhurg
1 Replies

5. UNIX for Advanced & Expert Users

scp automated script

Hi Unix gurus, I am trying to create a script to automate the copying of files daily from one server to another using the scp command. --> #!/bin/ksh KEY="$HOME/.ssh/SSHKEY" if ;then echo "Private key not found at $KEY" >> $LOGFILE echo "* Please create it with \"ssh-keygen -t dsa\" *"... (5 Replies)
Discussion started by: gholdbhurg
5 Replies

6. Shell Programming and Scripting

File path weirdness

I want to be able to drag and drop a file into a script in the terminal but it doesn't like the /home/user prefix. How do I get around this? (8 Replies)
Discussion started by: pluto7777
8 Replies

7. Shell Programming and Scripting

capturing exceptions from an scp clause

hpunix I have a script, that will scp -p a file. The server has keys set up. So I don't even pass a username. scp -p filename server:/directory There is a small chance that I can get an error. could be networking, etc... this is run from a job. I like to capture all exceptions when I do... (1 Reply)
Discussion started by: guessingo
1 Replies

8. UNIX for Dummies Questions & Answers

Paste many files together side by side

Hi, Thank you for your help in advance :D. I have thousands of files like... file01 file02 file03 . . . file6324 I would like to paste every other file side by side so it looks like file01 file02 file03 file04 ...e.t.c file6323 file6324 (3 Replies)
Discussion started by: shaz1990
3 Replies

9. UNIX for Dummies Questions & Answers

vim copy line and paste at the beginning, middle, and end of another line

How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies

10. Shell Programming and Scripting

Check file size before and after scp

Dears does anybody know how to check the file size on server A and server B before and after scp using KSH. Script should be on server A. I will be using it for the below mentioned scenario: I have written a code to fetch files from server A, move it onto server B compress it and save it on... (2 Replies)
Discussion started by: BrownBob
2 Replies

11. Shell Programming and Scripting

Automate scp between servers

Hello, Could someone please help me with the below requirement? I need to automate scp files between two servers. I have a file having server names and paths to the folder like below server1 /path/to/folder/ server1 /path/to/folder/ server1 /path/to/folder/ server2 /path/to/folder/... (4 Replies)
Discussion started by: Kochappa
4 Replies

12. Shell Programming and Scripting

How to prvenent giving password run time in schell scripting?

Hi I'm copying around 20 vi files from solaris server-A to server-B using 'scp' command.I have included all 20 scp commands in one shell script. Proplem is, while executing each scp command its prompting for my NIS password of server A. Please see below How to get rid of password prompt.??? (1 Reply)
Discussion started by: buzzme
1 Replies

13. UNIX for Beginners Questions & Answers

Expect in Bash - and then compare md5sum

I'm running on a staging server. I will need to use expect and I think ssh or scp to the other boxes. I need to see something like this....Enter:Host 1 Enter:Host 2 Enter full directory path to compare: example /apps/acd/jboss-customer1/ Enter User Id: Enter Password: ( Assumes... (6 Replies)
Discussion started by: xgringo
6 Replies