05-30-2013
Quote:
Originally Posted by
balajesuri
I am still not able to understand. IMHO, the requirement is still vague.
Why can't you have the shell script to read that line?
i want that way
this is too general
but the problem is that i have in my shell script
something like that
#hub
ssh myserver "${SIIR}input.pl $*"
SIIR has many characters and the file input.pl read them
so i create this solution
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi
Can any one suggest me book for perl scripting on UNIX Platform.
Regards (2 Replies)
Discussion started by: rochitsharma
2 Replies
2. Shell Programming and Scripting
Hi,
I want to use the mailx command or sendmail command in perl script.
I am trying this one and getting error:
system "mailx -s \"Test mail\" $ar1";
Error:
The flags you gave are used only when sending mail. (10 Replies)
Discussion started by: vaibhav
10 Replies
3. Shell Programming and Scripting
Hi
does anyone know how to ouput "I love scripting" to "scripting love I"
without using reverse() function in perl?
Thanks (2 Replies)
Discussion started by: ccp
2 Replies
4. Shell Programming and Scripting
Hi,
To run a perl script i am giving command like this in DOS prompt
d:> perl D:\<dir_name>\<dir_name>\sample.pl
Its throwing the following error while running the above
syntax error at <eval 4> line 1, near "use D:"
Can anyone help? (3 Replies)
Discussion started by: mvictorvijayan
3 Replies
5. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
Need help configuring Active Perl on Windows Vista.
I am trying to install Active Perl on Windows Vista.
The version of Active Perl i am trying to install is : ActivePerl 5.10.1 Build 1006
After installing it through cmd, When i try to run perl -v to check the version, i get the... (2 Replies)
Discussion started by: Vabiosis
2 Replies
7. What is on Your Mind?
Hi all,
I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first.
Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies
8. What is on Your Mind?
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies
9. Web Development
i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
10. Shell Programming and Scripting
I am having file xyz.log
Its content is like this
int main()
{
d;
#ifdef
e;
f;
#else
g;
#ifdef
h.
#else
i; (2 Replies)
Discussion started by: naaj_ila
2 Replies
escape(1) Mail Avenger 0.8.3 escape(1)
NAME
escape - escape shell special characters in a string
SYNOPSIS
escape string
DESCRIPTION
escape prepends a "" character to all shell special characters in string, making it safe to compose a shell command with the result.
EXAMPLES
The following is a contrived example showing how one can unintentionally end up executing the contents of a string:
$ var='; echo gotcha!'
$ eval echo hi $var
hi
gotcha!
$
Using escape, one can avoid executing the contents of $var:
$ eval echo hi `escape "$var"`
hi ; echo gotcha!
$
A less contrived example is passing arguments to Mail Avenger bodytest commands containing possibly unsafe environment variables. For
example, you might write a hypothetical reject_bcc script to reject mail not explicitly addressed to the recipient:
#!/bin/sh
formail -x to -x cc -x resent-to -x resent-cc
| fgrep "$1" > /dev/null
&& exit 0
echo "<$1>.. address does not accept blind carbon copies"
exit 100
To invoke this script, passing it the recipient address as an argument, you would need to put the following in your Mail Avenger rcpt
script:
bodytest reject_bcc `escape "$RECIPIENT"`
SEE ALSO
avenger(1),
The Mail Avenger home page: <http://www.mailavenger.org/>.
BUGS
escape is designed for the Bourne shell, which is what Mail Avenger scripts use. escape might or might not work with other shells.
AUTHOR
David Mazieres
Mail Avenger 0.8.3 2012-04-05 escape(1)