Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~62.0K People Reached

22 Posted Topics

Member Avatar for samaru
Member Avatar for Shane_Warne
Member Avatar for davidchengnoc
2
3K
Member Avatar for KevinADC
Member Avatar for Mayank Mathur

Set the variables as needed first, then: [code]( cat <<! From: $FROM Subject: $SUBJ To: $TO ! [ "$CC" ] && echo "Cc: $CC" echo cat $BODY ) | sendmail[/code]

Member Avatar for sftranna
0
625
Member Avatar for captor

[quote=kamitsin;221061]I have attached the modified script beacuse the original script is for changing the password across multiple servers and i guess this is not what you require. You need to execute the script from root user. It will create a log file in the directory from which you are executing …

Member Avatar for milanshentu
0
2K
Member Avatar for medaugh

If you want to indent you can use the indent option for inline files: [CODE]if [[ something ]] ; then ftp -n $HOST <<-END_SCRIPT ... ftp commands ... END_SCRIPT fi[/CODE] Note the dash before the introduction to the inline file.

Member Avatar for JeoSaurus
0
627
Member Avatar for flextronics

[CODE]echo "fdxE1ConfigAdminStatus int 1 2" | while read name type values ; do set -A valarray $(echo $values) echo $name $type ${valarray[0]} ${valarray[1]} echo "There are $((${#valarray [*]} - 2)) more values for $name" done[/CODE]

Member Avatar for anil.sivapuram
0
155
Member Avatar for timd

After you have created a working copy with cpanel and overwritten it with your code, do [CODE]cat -v test.pl[/CODE] Then rename that file. [CODE]mv test.pl goodtest.pl[/CODE] Then upload so you get the 500 error and do the cat again. [CODE]cat -v test.pl[/CODE] Then diff them. [CODE]diff test.pl goodtest.pl[/CODE] And post …

Member Avatar for KevinADC
0
241
Member Avatar for MattEvans

Are you saying you don't want to grab any output, you only want to execute the CGI? For that you could put the URL in a button. If you want to dynamically change a part of the page without editing then you might be wanting server-side scripting such as with …

Member Avatar for MattEvans
0
228
Member Avatar for LindaF

[quote=LindaF;251558]I don't know how I can execute an event of Javascript into a link in a program in Perl. This event of JavaScript have executed a function that return a HTML page. Anybody know how I can it? [/quote] It's not easy to understand what you are saying you want …

Member Avatar for vonfeldt
0
101
Member Avatar for FireSBurnsmuP

All that puckdropper said. Plus short time to implementation. I was happy with Korn Shell and sed, having abandonded awk for that combination long before. Then I began needing IPC and got into the world of perl mods. If you don't need a GUI (it's there in a couple of …

Member Avatar for vonfeldt
0
109
Member Avatar for liezer

[CODE]echo " set head off select profile,limit from dba_profiles where resource_name = 'FAILED_LOGIN_ATTEMPTS'; " |sqlplus -S username/password | while read profile limit ; do if [[ $limit = UNLIMITED ]] || [[ $limit -gt 3 ]] ; then echo "ERROR: $profile can attempt to login $limit times" fi done[/CODE]

Member Avatar for sut
0
106
Member Avatar for WolfPack

He did write: [quote]If you're using bash just "declare" opts as an array.[/quote] That is: [code]declare -a opts[/code] Notice the [code]#!/bin/ksh[/code] at the start of his code.

Member Avatar for jim mcnamara
0
174
Member Avatar for sommer_queen

You've deleted a couple of lines before posting. The error is on line 8, not 11. Take the space out from between SAG and the equal sign in the environment variable assignment. That should solve the permission denied problem too.

Member Avatar for sommer_queen
0
118
Member Avatar for sut

I want to script the use of passwd. Since it accesses the controlling tty directly, I cannot do this with standard IO redirection. I may not install additional perl modules nor the expect utility. I have written a perl script to do this but there is something missing. I think …

Member Avatar for sut
0
91
Member Avatar for kararu

I think you will probably have to classify the perl portion of the package. I don't know if adding [inlinecode]use Inline CPP;[/inlinecode] to the calling program would help. [URL]http://www.perl.com/doc/manual/html/pod/perltoot.html[/URL]

Member Avatar for sut
0
97
Member Avatar for msvinaykumar
Member Avatar for KevinADC
0
227
Member Avatar for msvinaykumar

Nearly everything I know about perl re I got from [URL]http://perldoc.perl.org/perlretut.html[/URL] I will continue to go there as a reference because I am familiar with it but [URL]http://www.regular-expressions.info/tutorial.html[/URL] seems to be well organized and comprehensive.

Member Avatar for sut
0
79
Member Avatar for zerobreach.com

This would work better. [code]cat wordlist.txt | tr -d '\r' | while read i ; do sed "s-$i-<a href=http://www.domain.com>$i</a>-g" article.txt done[/code] But I think what you really want is to put the substitution commands in the wordlist like this: s-Word1-<a href=http://www.domain.com/Link1>Word1</a>-g s-Word1-<a href=http://www.domain.com/Link2>Word2</a>-g s-Word1-<a href=http://www.domain.com/Link3>Word3</a>-g And then: [code]sed -f wordlist.txt …

Member Avatar for sut
0
81
Member Avatar for flextronics

I would do this in Korn Shell. I haven't tested it on bash but it should do the same. It is POSIX shell syntax. while read line ; do set -A attr $(echo $line | tr ':' ' ') echo ${attr [*]} done The array elements are indexed from 0 …

Member Avatar for sut
0
127
Member Avatar for toztech

[CODE]sed ' /Line1/{ N;N;N;N s/^Line1\nLine2\nLine3\nLine4\nLine5$/Line1\ Line2\ INSERTLINE1\ Line3\ INSERTLINE2\ Line4\ Line5\ / }' rc.conf [/CODE]

Member Avatar for sut
0
180
Member Avatar for toztech

The End.