12-01-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi..
i wolud like to know if itīs possible use the crontab command in my script.
the idea is what the script starts automatically, but i donīt know how to do it.
please, help me....
thanks
jonathan (1 Reply)
Discussion started by: DebianJ
1 Replies
2. UNIX for Dummies Questions & Answers
I want to add one line to the end of my crontab using a script.
I have tried piping in the editor commands, but I can't get it to work.
crontab -e user << EX
$a
This is the text I want to add.
.
wq
EX
This doesn't work. Is there an easier way to do this? (2 Replies)
Discussion started by: johnmsucpe
2 Replies
3. Shell Programming and Scripting
I know my question maybe eazy, but it realy cause a problem for me
I have a Perl script to run and get some output, I run this script using perl /moutaz/ciscolog/telnet.pl
I made another script as follow:(/moutaz/ciscolog/script)
#!/bin/bash
perl /moutaz/ciscolog/telnet.pl
cp... (6 Replies)
Discussion started by: moutaz1983
6 Replies
4. Shell Programming and Scripting
Hi!
We are on AIX 5.3
I have a script that must be run once every hour.
How do i add this to the crontab?
I know how to access crontab which is, crontab -e.
What do i do after that ? If i have the path to the script?
Thank you!!! (4 Replies)
Discussion started by: atechcorp
4 Replies
5. Solaris
Hi
I have successfukky created a sh script that runs perfectly well when run. It contains within a pl script that when run through a crontab will not run. Are there restrictions running a pl in cron? (14 Replies)
Discussion started by: rob171171
14 Replies
6. Shell Programming and Scripting
Hi All,
I am running a script to find the CPU and memory utilization of the server. Script name is atul. When i run this script then it gives the desired output as DATE, CPU and MEMORY utilization....as mentioned below:
$
$ cat atul
A=`date| cut -d" " -f1-4; top -d 1 -n 1 | awk '/^CPU... (5 Replies)
Discussion started by: atulbassi83
5 Replies
7. UNIX for Dummies Questions & Answers
Hi guys
Can someone help me with a crontab script please?
I have to sort the files from /bin and put the first 3 of then (with size and path) in /home/user/bin_size
i write the command:
find /bin/ | xargs ls -lS | awk 'FNR<4{print($5, $9)}' > /home/user/bin_size
which is working but when... (6 Replies)
Discussion started by: G30
6 Replies
8. UNIX for Dummies Questions & Answers
Hi guys today i'll bring to you a new problem that i need to execute.
So what i need to do it's create a script that:
conect to some database
logon
run a .sql script
logoff
and close the connection
after that, put this script on the crontab
To set up the crontab it's ok for me, i think... (3 Replies)
Discussion started by: Newer
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am having the below script to be run from crontab, it it doesnt run.
1 * * * * /home/cobr_ext/test.sh > /home/cobr_ext/temp.txt
when i run i manally it runs without any issues.
Could please help me as to why doesnt it run the script.:( (7 Replies)
Discussion started by: abhi_123
7 Replies
10. UNIX for Dummies Questions & Answers
I have crontab setup via crontab -e
I was wondering if its possible to create a cron job from a script so when the script is run the cron job is created? (3 Replies)
Discussion started by: scriptnewbie
3 Replies
LEARN ABOUT SUSE
uri::url
URI::URL(3) User Contributed Perl Documentation URI::URL(3)
NAME
URI::URL - Uniform Resource Locators
SYNOPSIS
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
DESCRIPTION
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to
be distributed with the libwww-perl library.
The following differences exist compared to the "URI" class interface:
o The URI::URL module exports the url() function as an alternate constructor interface.
o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase".
o The URI::URL->newlocal class method is the same as URI::file->new_abs.
o URI::URL::strict(1)
o $url->print_on method
o $url->crack method
o $url->full_path: same as ($uri->abs_path || "/")
o $url->netloc: same as $uri->authority
o $url->epath, $url->equery: same as $uri->path, $uri->query
o $url->path and $url->query pass unescaped strings.
o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters)
o $url->params and $url->eparams methods
o $url->base method. See URI::WithBase.
o $url->abs and $url->rel have an optional $base argument. See URI::WithBase.
o $url->frag: same as $uri->fragment
o $url->keywords: same as $uri->query_keywords
o $url->localpath and friends map to $uri->file.
o $url->address and $url->encoded822addr: same as $uri->to for mailto URI
o $url->groupart method for news URI
o $url->article: same as $uri->message
SEE ALSO
URI, URI::WithBase
COPYRIGHT
Copyright 1998-2000 Gisle Aas.
perl v5.12.1 2008-04-04 URI::URL(3)