now why is it taking only first word and throwing an error from second word onwards... i know i might be asking some silly stuff. but i am new to this eval command...
Hi
i have the following code:
if(($line!=1) and (@field!='\$')){
print ( "\nTRY TO CONNECT TO DATABASE................\n");
my $dbh = DBI->connect($dsn, $user, $pass);
print ("CONNECTED TO DATABASE\n");
eval
... (1 Reply)
Hi Gurus,
I am having 2 parameters as below
parm1=value1
parm2=parm1
I want to evaluate parm1 value using eval echo \$$parm2 and later i want to assign this value to other variable which i will be using in if statement like :
if ]; then
do this.......
fi
could you please suggest... (5 Replies)
I have file called myfile which has the text "myserver" in it. I need to have a command to ping "myserver". How would I do that?
I tried
when I type at the terminal I get the output as . How do I do something like a ?
thanks,
Nick (5 Replies)
Hi all,
some small script with eval turned me to crazy.
my OS is linux
Linux s10-1310 2.6.16.53-0.8.PTF.434477.3.TDC.0-smp #1 SMP Fri Aug 31 06:07:27 PDT 2007 x86_64 x86_64 x86_64 GNU/Linux
below script works well
#!/bin/bash
eval ssh remotehost date
eval ssh remotehost ls
below... (1 Reply)
Hi All,
I read the above written code (perl code) in another perl script and evaluates this code for each line of text file,but using exit statement in code make this not to work and i could not get the desired results. However if i use return it works fine. I just need to know why it doesn't... (1 Reply)
Discussion started by: sarbjit
1 Replies
6. Forum Support Area for Unregistered Users & Account Problems
Hello,
I believe that the following man page contains an error: <www dot unix dot com>/man-page/posix/1posix/eval/
In section "EXAMPLES", the fourth line should probably be:
eval y='$'$x
rather than:
$fooeval y='$'$x
Regards,
Jérôme DUBOIS. (1 Reply)
Hi,
I am trying to use eval command to evaluate a variable(HAPROXY_LISTENER_rabbitmq_project-test-BRHM_PORT) which consists of '-' but unfortunately the eval command is unable to interpret the value of variable and trims the variable name after '-' and produces the string output rather than the... (10 Replies)
Hi,
I am Pradnya Gandhe trying to use in shell script.
I want to use a bit complicated command using eval command in a shell script.
<path to>\wsadmin.sh -lang jython -conntype NONE -c "AdminApp.install('war file path', '] -MapWebModToVH ] -MapRolesToUsers ] ]')"
Works correctly as expected... (2 Replies)
Hi Guys,
I wrote a collection of bash functions years ago and now need to use them again but
I'm getting some error messages when eval tries to expand the variables names.
I recollect that I used the shopt command to set one of the options but I can't quite
remember the command that I... (8 Replies)
Discussion started by: ASGR
8 Replies
LEARN ABOUT DEBIAN
canto-fetch
Canto-fetch(1) Canto-fetch Canto-fetch(1)NAME
Canto-fetch - A quiet feed fetcher.
DESCRIPTION
Canto-fetch is designed to be run through a cron job, every minute. Every time it's run, it checks the timestamp on each index file and
updates the feed, if necessary. The format it produces is a simple UTF-8 encoded, NULL delimited text file on disk, readable by the canto
client.
GETTING STARTED
Canto-fetch is meant to be used through a cron, adding this line to your crontab will cause canto-fetch to poll every minute.
* * * * * canto-fetch
Alternatively, if you're unable/uncomfortable using cron, canto-fetch has a background daemon mode so you can invoke it in your X session
scripts. Just use
canto-fetch -b
USAGE
These options correspond to options to the canto client.
-h / --help
Print usage and quit.
-v / --version
Print version and quit.
-V / --verbose
Output status while updating.
-d / --daemon
Continue to check for updates every minute. Mostly for debugging with -V, users probably want -b to background.
-b / --background
Detach from the terminal (implies -d)
-f / --force
Force updates on all feeds, ignoring timestamps.
-s / --sysfp
Use feedparser on system instead of builtin copy.
-C / --conf [PATH]
Set path to configuration file (default: ~/.canto/conf)
-F / --fdir [PATH]
Set path to feed directory (default: ~/.canto/feeds/)
-L / --log [PATH]
Set path to log (default: ~/.canto/fetchlog)
-S / --sdir [PATH]
Set the path to execurl scripts (default ~/.canto/scripts/)
FILES
~/.canto/fetchlog
Canto-fetch log file.
~/.canto/feeds/
This is the directory where canto-fetch records stories.
BUGS
None known, but it's not outside of the realm of possibility =P.
HOMEPAGE
http://codezen.org/canto
AUTHOR
Jack Miller <jack@codezen.org>
Version 0.7.10 27 July 2010 Canto-fetch(1)