10-26-2019
Thanks, adding the current directory to Path did the trick.
This User Gave Thanks to ngabrani For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Why do basic unix commands such as "ls" not work in "BASH" mode??
I am frustrated!! (10 Replies)
Discussion started by: PixelLover
10 Replies
2. Shell Programming and Scripting
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies
3. UNIX for Dummies Questions & Answers
Hello there
Been using Unix bash scripting for two days now so am very new to this. I am currently doing a project now and i'm basically making a noughts and crosses game (or tic tac toe).
I have created the board using an array. When I try and check to see if the array is empty using an If... (3 Replies)
Discussion started by: ChrisHoogie
3 Replies
4. Shell Programming and Scripting
*This is not homework I am new to UNIX and want to try this Monitoring a file demo*
*If this is the wrong forum please move it - im new to the forums*
$1 = the file to be monitored
$2 = the time for the file to sleep
If the file gets changed (using -nt) it will send my username mail saying... (2 Replies)
Discussion started by: Nolan-
2 Replies
5. Shell Programming and Scripting
Hi guys. Very new to this so apologies if this is ridiculously obvious, but I am not sure why this isn't working. I want to pull a file off an FTP server. I currently do it through windows, which is no problem, but I want to move everything to a Linux box I just installed. wget won't work as the... (4 Replies)
Discussion started by: majormajormajor
4 Replies
6. Shell Programming and Scripting
Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date :
for i in `ls $replog/*.gz`
do
echo " $i "
`echo $i date +%d:%m:%Y`
`echo $datee `>> $replog/mrnet.log
mv $i /var/log/vieux-logs
done
I need to echo... (10 Replies)
Discussion started by: Dabless
10 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to monitor CPU load of few processes, with the same name.
The output that I get from top is the following
28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89 /opt/ppp//h264rtptranscoder.bin --videoPort=14504 --audioPort=14505
27589 root 20 0 1060m 23m... (3 Replies)
Discussion started by: liviusbr
3 Replies
8. Shell Programming and Scripting
Hi all,
i'm making some test on a data file. Imagine i have two columns inside it :
80377,20
80377,20
80379,19
80378,20
80380,20
80382,20
80381,21
Just to understand how can it works, imagine to subtract 100 to the number in the first column when the other one in the second... (4 Replies)
Discussion started by: Board27
4 Replies
9. UNIX for Beginners Questions & Answers
Hi everyone, first time visitor to these forums here.
Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
Discussion started by: Meta
4 Replies
10. Fedora
My shell environment is bash and desktop environment is LXDE. When I use the up and down button on the keyboard to view the command history on bash shell, many times part of the command from the history remains on the line. For example
/home/milhan > ssh somedomain.org
/home/milhan > then when I... (5 Replies)
Discussion started by: milhan
5 Replies
LEARN ABOUT DEBIAN
graphics::primitive::path
Graphics::Primitive::Path(3pm) User Contributed Perl Documentation Graphics::Primitive::Path(3pm)
NAME
Graphics::Primitive::Path - Collection of primitives
DESCRIPTION
Graphics::Primitive::Path is a shape defined by a list of primitives.
SYNOPSIS
use Graphics::Primitive::Path;
my $path = Graphics::Primitive::Path->new();
$path->add_primitive($line);
$path->move_to($point);
METHODS
Constructor
new Creates a new Graphics::Primitive::Path
Instance Methods
add_primitive ($prim)
Add a primitive to this Path.
arc ($radius, $start, $end, [ $skip_line_to ])
$path->arc($radius, $start_angle_in_radians, $end_angle_in_radians);
Draw an arc based at the current point with the given radius from the given start angle to the given end angle. A line will be drawn
from the current_point to the start point of the described arc. If you do not want this to happen, supply a true value as the last
argument.
clear_current_point
Clears the current point on this Path.
clear_primitives
Clears all primitives from this Path. NOTE: This does not clear the current point.
close_path
Close the current path by drawing a line from the current_point back to the first point in the path.
contiguous
Flag this path as being contiguous at this point. Continuity is important so some path-based drivers such as Cairo. You should not
mess with this attribute unless you know what you are doing. It's used for driver hinting.
current_point
Returns the current -- or last -- point on this Path.
curve_to ($control1, $control2, $end)
Creates a cubic BA~Xzier curve from the current point to the $end point using $control1 and $control2 as control points.
ellipse ($width, $height, [ $skip_line_to ])
Creates an ellipse at the current point with the specified width and height. Optional last argument, if true, skips drawing a line to
the ellipse's starting point.
get_points
Get this path as a series of points.
get_primitive
Returns the primitive at the specified offset.
hints
List of hint hashrefs. This hint arrayref matches the primitives arrayref one-to-one. Hints are tidbits of information that may assist
drivers in optimizing (or successfully handling) primitives in this path's list. You should not mess with this structure unless you
know what you are doing.
line_to ($point | $x, $y)
Draw a line from the current point to the one provided. Accepts either a Geoemetry::Primitive::Point or two arguments for x and y.
move_to ($point | $x, $y)
Move the current point to the one specified. This will not add any primitives to the path. Accepts either a
Geoemetry::Primitive::Point or two arguments for x and y.
primitive_count
Returns the number of primitives on this Path.
rectangle ($width, $height)
Draw a rectangle at current_position of the specified width and height.
rel_curve_to ($x1, $y1, $x2, $y2, $x3, $y3)
Creates a cubic BA~Xzier curve from the current point using the provided values as offsets:
start = current point
control1 = current point + $x1,$y1
control1 = current point + $x2,$y2
end = current point + $x3,$y3
rel_line_to ($x_amount, $y_amount)
Draw a line by adding the supplied x and y values to the current one. For example if the current point is 5,5 then calling
rel_line_to(2, 2) would draw a line from the current point to 7,7.
rel_move_to ($x_amount, $y_amount)
Move to a new point by adding the supplied x and y values to the current ones.
AUTHOR
Cory Watson <gphat@cpan.org>
COPYRIGHT & LICENSE
Copyright 2008-2010 by Cory G Watson.
You can redistribute and/or modify this code under the same terms as Perl itself.
perl v5.12.3 2010-08-21 Graphics::Primitive::Path(3pm)