i have four commands
1. perl -MCPAN -e shell 2. o conf prerequisites_policy follow
3. o conf commit 4. exit
I am attempting to streamline a bunch of yum commands and cpan installations and want to remove the confirmation portion of the cpan these four commands will do just that. my question. If it is possible, how do i place these into the shell script to run these commands after doing the yum install but before doing the cpan install
NOTE: I must use cpan instead of searching for these modules in rpms as the program they are used by has an issue with using rpms over the cpan modules.
ex.
any assistance will be grately appreciated.
Last edited by Scott; 11-10-2010 at 02:04 PM..
Reason: Use code tags, please...
hi,
Is it possible to call a perl function from a perl module from within a shell script. I have a similar requirement.
Thanks in advance,
Kavitha (1 Reply)
All
I want to call a perl program from my shell script. Please help me. I want to call through URL only. Like " http://www.test.com/CGI-bin/test?test=value"
Please help to write this script. Thanx in advance.
Thanking you
Regards
Deepak Xavier (0 Replies)
if ( system ("/bin/cat $File1 >> $File2") ) {
print("#WARNING RAISED : /bin/cat File1 >> File2 - FAILURE!\n"); } I came across this code, would appreciate if someone can tell me if my understanding is correct?
the perl code tell the system to cat file 1 into file 2, if command fails, print... (4 Replies)
Hi all,
Not sure if this is the right forum to post query regarding perl script.
I have a perl script which internally calls a shell script. My problem is that the shell script should be passed command line arguments.
I call a shell script from perl using:
system("sript.sh");
How do... (3 Replies)
Hi,
I have just started off with the shell programming.
I need to execute a GDB command from a shell script. I have been trying to get this working from quite sometime but not getting it quite right.I have this specific requirement that i read byte data from a file and write that data to the... (0 Replies)
Hi,
ive a perl script, where it has a subroutine clear() in it, and i've one shell script which runs in background, from that shell script i wanted to call subroutine which is in perl script, that's perl script is not module, just simple script.
Eg:
perl script <test>
#!... (4 Replies)
I have a shell script like this:
#!/bin/sh
$PYTHON MetarDecoder.py < ../data/mtrs/arg1/arg2
And I'm calling it with this in perl:
my $output = `./metar_parse.sh --options`;
It's successful when I put in actual values for arg1 and arg2 in the shell script, but I'd like to pass arguments... (1 Reply)
I am currently in Afghanistan and do not have access to some of the resources I normally do back in the US. Just accessed this site and it looks promising! Hopefully you will not find my question too much of a waste of your time.
I write mostly Korn Shell and PERL on Solaris systems for the... (2 Replies)
I am calling a perl script from shell script.
$ cat mah_appln_bkp_oln.ksh
#!/bin/ksh
. /udb/home/udbappln/.profile
. /udb/home/udbappln/sqllib/db2profile
Com=/udb/udbappln/utility/systemscripts/currentUMR
perl $Com/backup.pl -d dbname --tsm --purgetsmcopies 21 --purgetsmlogs
exit 0
... (1 Reply)
Discussion started by: ilugopal
1 Replies
LEARN ABOUT DEBIAN
yum-updatesd.conf
yum-updatesd.conf(5) yum-updatesd configuration file yum-updatesd.conf(5)NAME
yum-updatesd.conf - Configuration file for yum-updatesd(8).
DESCRIPTION
yum-updatesd uses a configuration file at /etc/yum/yum-updatesd.conf.
Additional configuration information is read from the main yum.conf (5) configuration file.
PARAMETERS
There is one section in the yum-updatesd configuration file, main, which defines all of the global configuration options.
[main] OPTIONS
The [main] section must exist for yum-updatesd to do anything. It consists of the following options:
run_interval
Number of seconds to wait between checks for available updates.
updaterefresh
Minimum number of seconds between update information refreshes to avoid hitting the server too often.
emit_via
List of ways to emit update notification. Valid values are `email', `dbus' and `syslog'.
do_update
Boolean option to decide whether or not updates should be automatically applied. Defaults to False.
do_download_deps
Boolean option to decide whether or not updates should be automatically downloaded. Defaults to False.
do_download_deps
Boolean option to automatically download dependencies of packages which need updating as well. Defaults to False.
MAIL OPTIONS
email_to
List of email addresses to send update notification to. Defaults to `root@localhost'.
email_from
Email address for update notifications to be from. Defaults to `yum-updatesd@localhost'.
SYSLOG OPTIONS
syslog_facility
What syslog facility should be used. Defaults to `DAEMON'.
syslog_level
Level of syslog messages. Defaults to `WARN'.
FILES
/etc/yum/yum-updatesd.conf
SEE ALSO yum-updatesd(8)yum.conf(5)Jeremy Katzyum-updatesd.conf(5)