08-29-2013
What have you done so far?
What issue did you encounter?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am facing a problem to pass command line arguments that looks like
<script name> aa bb "cc" dd "ee"
I want to pass all 5 elements include the " (brackets). when I print the @ARGV the " disappear. I hope I explain myself
Regards,
Ziv (4 Replies)
Discussion started by: zivsegal
4 Replies
2. Shell Programming and Scripting
Hi,
I had written a shell script to pass command line argument to variable in a function.
Here is my code:
main
if ; then
.$1
echo $1
get_input_file
else
echo "input file $1 is not available"
fi
get_input_file()
{
FILE = "$1"
echo $FILE
} (10 Replies)
Discussion started by: Poonamol
10 Replies
3. Shell Programming and Scripting
i want to write a shell script function that will ftp the files passed in the command line . i have written a shell script for ftp but how will it do for all files passed in command line argument ,
i am passing 4 files as argument
./ftp.sh file1 file2 file3 file4
code written by me... (5 Replies)
Discussion started by: rateeshkumar
5 Replies
4. Shell Programming and Scripting
Can someone let me know how could I achieve this
In one of per script I am calling the shell script but I need to so one thing that is one shell script call I need to pass pne argument.In below code I am calling my ftp script but here I want to pass one argument so how could I do this (e.g:... (5 Replies)
Discussion started by: anuragpgtgerman
5 Replies
5. Shell Programming and Scripting
Hi,I have a script which is given below :#!/bin/bash. ini_script.shdb2 connect to $DB_NAME user $DB2_UID using $DB2_PASSWORDfor file in `ls -1 ./sql/ddw/`do echo "Executing the file $file" echo db2 -tvf $filedonedb2 quiti want this script to accept directorie's names present in... (1 Reply)
Discussion started by: ektubbe
1 Replies
6. Programming
hi,
I am new in the shell script, and c programming with linux. I am looking to pass the arguments in c program that should be executed by the shell script.
e.g.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{ int i;
for (i=1;i<argc; i++)
{
... (2 Replies)
Discussion started by: sharlin
2 Replies
7. Shell Programming and Scripting
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script
https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: Nsharma3006
1 Replies
8. Shell Programming and Scripting
Hi,
Is there any way that we can pass one file as one of the argument in shell script ? (1 Reply)
Discussion started by: Selva_2507
1 Replies
9. Shell Programming and Scripting
Hi all,
$ echo $SHELL
/bin/bash
Requirement - How to pass oracle sql script as argument to unix shell script?
$ ./output.sh users.sql
Below are the shell scripts and the oracle sql file in the same folder.
Shell Script
$ cat output.sh
#!/bin/bash
.... (7 Replies)
Discussion started by: a1_win
7 Replies
10. Shell Programming and Scripting
I'm looking to write a script that takes a .txt filename as an argument, reads the file line by line, and passes each line to a command. For example, it runs command --option "LINE 1", then command --option "LINE 2", etc. I am fetching object files from a library file, I have all the object file... (2 Replies)
Discussion started by: Paul Martins
2 Replies
LEARN ABOUT DEBIAN
news::article::nocem
NoCeM(3pm) User Contributed Perl Documentation NoCeM(3pm)
NAME
News::Article::NoCeM - a module to generate accurate nocem notices
SYNOPSIS
use News::Article::NoCeM;
my $nocem = new News::Article::NoCeM();
$nocem->hide($type, $spam);
$nocem->make_notice($type, $name, $issuer, $group, $prefix);
$nocem->sign($keyid, $passphrase);
$nocem->issue($conn, $ihave);
DESCRIPTION
Creates a nocem notice on the Usenet articles, which may be posted normally to hide the messages.
USAGE
use News::Article::NoCeM;
News::Article::NoCeM is class that inherits News::Article and adds four new functions: hide(), make_notice(), sign() and issue(), redefine
to disable two functions: post() and ihave().
Article Methods
hide ( TYPE, ARTICLE, [ARTICLE, ...] )
Hide one or more articles in the given "TYPE". "ARTICLE" is an News::Article object that going to be hid. hide() will skip the
articles without Newsgroup or Message-ID and skip the ones already hid.
hide() returns the number of the articles hid.
post
ihave
post() and ihave() is disabled in News::Article::NoCeM. Please use issue() instead.
make_notice ( TYPE, NAME, GROUP, ISSUER, [ PREFIX ] )
Retrive articles marked by hide with "TYPE", and make a notice fot them. If there's only one type within a container, then the
container itself can be a notice. "NAME" is the identifier of the issuer. "GROUP" is the newsgroup the you will post nocem notice to.
"ISSUER" is the email address of the issuer. "PREFIX" is the announcement before the nocem notice, which may explain the criteria of
this notice, or where to find your public key for PGP verification.
make_notice() returns a News::Article::NoCeM object if success, and return undef if no article is hid.
sign ( KEYID, PASSPHRASE )
Sign the content of the nocem notice with "KEYID" and "PASSPHRASE". Please make sure that the issuer's public/secret keyring is ready.
sign() returns a News::Article::NoCeM object if success, and return undef if no article is hid, or pgp_sign failed.
issue ( [ CONN, IHAVE ] )
Take optional "CONN" as a Net::NNTP object and issue the nocem notice. "IHAVE" indicates that call Net::NNTP::ihave() for submitting
the notice, otherwise issue() will call News::Article::post() by default.
issue() return the result of News::Article::post() or issue().
NOTES
Standard article manipulation information can be read in the News::Article manpages.
NoCeM FAQ is available on the web at <URL:http://www.cm.org/faq.html>.
AUTHOR
Written by Yen-Ming Lee <leeym@leeym.com>, based on a module by Tim Skirvin <tskirvin@killfile.org>.
COPYRIGHT
Copyright 2004-2005 by Yen-Ming Lee <leeym@leeym.com>. This code may be redistributed under the same terms as Perl itself.
perl v5.12.4 2006-06-23 NoCeM(3pm)