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)
Check Out this Related 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)
Hi
This is going to sound so easy to some of you out there...
trying to copy and paste lines to an existing script - is there a command that i can use that overwrites the existing text there?
Cheers (11 Replies)
Hey all, I need to retrieve something from a line, say
<TEST><A>123</A><B>456</B><ID>1111</ID><C>789</C><D>000</D></TEST><TEST><A>123</A><B>456</B><ID>2222</ID><C>789</C><D>000</D></TEST>
I need to match <ID>111</ID>, so I want to retrieve
<ID>1111</ID><C>789</C><D>000</D></TEST>
is... (14 Replies)
Hi
I am having some trouble cut and paste a file based on the content of another file.
I have a file called draft. I need to cut and paste its content to another file based on the content of a file called proc.txt
The content of proc.txt is like the following:... (7 Replies)
Hi all,
I'm a unix newb andI'm trying to write a script that can copy some text paste it in a certian place and then add a number. It's not really clear but I'll show an example.
what the file looks like right now:
Linux 2.6.24-24-generic (abc) 07/15/09
23:25:01 CPU ... (6 Replies)
Hi,
I rather have a very complicated awk problem here, at least to me. I have two files.
File 1:
607 687 174 0 0 chr1 3000001 3000156 -194195276 - L1_Mur2 LINE L1 -4310 1567 1413 1
607 917 214 114 45 chr1 3000237 ... (19 Replies)
Hi i am just trying to compare the first line of a file with a string.
col=one,two,three
if
then
echo "equal"
else
echo "NE"
fi
i am getting error 'then' is not expected
can someone help? (7 Replies)
if i do this in C
#define NUM 1234512345
then how come i cant print it out using
int main(int argc, char **argv) {
printf("%d\n", NUM);
return 0;
}
well the result is -1219236538, why isnt it 1234512345 ? (7 Replies)
using paste -- sd " " via command line give sme desired output however when I use > it changes the format slightly.
Anyone any ideas as to why this may happen
Running
SunOS alps 5.10 Generic_125100-05 sun4v sparc SUNW,Sun-Fire-T200 (14 Replies)
Hello Guys,
I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text?
For example, lets say i want to paste a line below the line Server name: in apache.conf . What should be added in the script? (8 Replies)
Is there a way to use the "paste" command to combine files and have each line key off of a column? All this time I've been pasting files together and foolishly not checking the line count of each file. I have just found out that the line count is not the same for each file so the data is not... (8 Replies)
Hello all.
Im trying very hard to figure this out, but Im a newbie.
I have a file that looks like this....
6315551234 NJ224
5162224567 SUFF
Im trying to put a command together that will make it into this....
UM,6315551234,,,,,NJ224,0
UM,5162224567,,,,,SUFF,0
Im all over the... (7 Replies)
Hello experts,
I have large text files that need to be arranged using a function like excel's vlookup. I have been playing with awk command but didn't really come up with a solution. Could anyone please help me out? Below are my datasets and expected output. Any help would be greatly... (8 Replies)
Hello,
I need to grep/read files from multiple directories, one by one.
I mean something like shuffling the cards uniformly.
cd /directoryA
for i in *.txt;
do
some codes
cd ../directoryB
for i in *.txt;
do
some codes
cd ../directoryC
for i in *.txt;
do
some codes
done
done... (8 Replies)