04-27-2004
IMHO since you would be doing shell script i dont think the penelty would be super if you used os commands. i mean thats kinda what its purpose is if you ask me.
take perl for example (or other higher language programs) they will incorporate alot of the os functionality into the language so teh program dosent have to use external programs to do its job.
there was a snipit of code i think RTM posted last week or so in the perl thread where he defined a variable by calling the shell to do something perl is capable of doing internally.
but ask Per said it is best to keep it to a absolute minimum.
i wrote some perl scripts a while back on purpose i called to the shell to see the time differance when working with files and i saved nearly 10 sec by not calling to the shell and doing the same process useing perl functions and modules.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following Perl snippet:
# get datetime
@dt = gmtime();
$strdate = 1900 + $dt . addleadingzero(++$dt) . addleadingzero($dt) . addleadingzero($dt) . addleadingzero($dt) . addleadingzero($dt);
# write to file
$outfile = $strdate . ".txt";
getstore($url, $outfile) or die "Error:... (3 Replies)
Discussion started by: figaro
3 Replies
2. Shell Programming and Scripting
Hi !! I've finished an awk exercise. Here it is:
#!/bin/bash
function calcula
{
# Imprimimos el mayor tamaño de fichero
ls -l $1 | awk '
BEGIN {
max = $5; # Inicializamos la variable que nos guardará el máximo con el tamaño del primer archivo
}
{
if ($5 > max){ #... (8 Replies)
Discussion started by: Phass
8 Replies
3. Shell Programming and Scripting
Hello Everyone!
I am a newbie. I'd like to get key lines from a big txt file by Reg Exp, The file is nearly 22MB.
GREP or SED?which may be the best choice,more efficient way?
or any other best practise?
Thank you in advance.
Ever:) (5 Replies)
Discussion started by: ever
5 Replies
4. Shell Programming and Scripting
I've got this program set up so that it creates files whose unique names specify the jobs their contents describe. In order to retrieve the information inside those files, I have to do a "grep" and awk or sed to extract it. I've just assumed that making a directory with that unique name that... (1 Reply)
Discussion started by: gmark99
1 Replies
5. UNIX for Advanced & Expert Users
Hello, there.
I'm a new beginner to Linux kernel and curious about its memory management.
When multiple applications apply for memory space at the same time, how Linux kernel solve the resource contending problem for high performance?
I have known that there is a buddy system for allocating and... (4 Replies)
Discussion started by: blackwall
4 Replies
LEARN ABOUT DEBIAN
yokadid
YOKADID(1) General Commands Manual YOKADID(1)
NAME
yokadid - commandline todo system
SYNOPSIS
yokadid [options]...
DESCRIPTION
yokadid is a Yokadi daemon that remind you due tasks. If you want to be automatically reminded of due tasks, you can use the Yokadi daemon.
The Yokadi daemon can be launched via desktop autostart services.
In KDE, you must create a symlink to yokadid (or a shell script that calls it) in $HOME/.kde/Autostart/.
ln -s `which yokadid` $HOME/.kde/Autostart/
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below.
-d, FILE --db=FILE
TODO database.
-k, --kill
Kill Yokadi Daemon (you can specify database with -db if you run multiple Yokadid).
-f, --foreground
Don't fork background. Useful for debug.
-h, --help
Show summary of options and exit.
SEE ALSO
yokadi(1), xyokadi(1).
SEE ALSO
Website: http://yokadi.github.com
Mailing List: http://sequanux.org/cgi-bin/mailman/listinfo/ml-yokadi
AUTHOR
yokadi was written by Aurelien Gateau <aurelien.gateau@free.fr> and Sebastien Renard <sebastien.renard@digitalfox.org>.
This manual page was written by Kartik Mistry <kartik@debian.org>, for the Debian project (and may be used by others).
July 10, 2009 YOKADID(1)