09-29-2010
But how can you expect us to help you if you havent given the slightest clue:
Quote:
2. Relevant commands, code, scripts, algorithms:
3. The attempts at a solution (include all code and scripts):
are empty...
Without information on what you did so far, it will be difficult to help you, sorry...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hai all..
How do i terminate my telnet session automatically when my java applicatiion exits. i have a file run which executes my java application and takes care of all class and library path settings prior to the execution. I would like to terminate my session when my application exits. The... (4 Replies)
Discussion started by: deepsteptom
4 Replies
2. UNIX for Dummies Questions & Answers
Hello.
i am new to unix, though have quite a substantial background of other systems.
i recently installed ffmpeg and mencoder on a unix server, which holds a website, in order to use these programs from the website.
after installation, i can activate both commands directly using putty,
no... (1 Reply)
Discussion started by: noamon
1 Replies
3. Shell Programming and Scripting
heres the lab i did everything but when i issue the automated lab check.
but it gives me this everytime
''you are missing the /home/smichaels/Labs/lab2b/group file, please create it as per step 12 of the lab.
once you have corrected this problem, re-run the uli101.023 program''
im... (1 Reply)
Discussion started by: ink
1 Replies
4. Shell Programming and Scripting
Write a script that copies the file tree (including subdirectories) in your home directory. As the initial directory to take the directory / usr / share / doc, as the destination directory using the directory $ {HOME} / doc.
Write a script corresponding to paragraph 1. Additional conditions: a)... (1 Reply)
Discussion started by: elginmulizwa
1 Replies
5. Shell Programming and Scripting
Hi,
Iam using below code to login to servers to get cpu utilisation. but output is coming for only one server. code is below
root@blr-svr-oclan-01 # more SSSC_CPU_UTIL1.sh
#!/bin/sh
echo "CPU UTILIZATION"
while read line; do
IDLE=`/usr/local/bin/sshpass -p 'xxx' ssh xxx@$line 'sar 2 2' |... (1 Reply)
Discussion started by: surender reddy
1 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here are my directions. I am pretty sure I am doing this right, but I just want someone more experienced to look... (4 Replies)
Discussion started by: Jagst3r21
4 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Filter a file for lines that have exactly 5 numbers in a row.
2. Relevant commands, code, scripts,... (13 Replies)
Discussion started by: herb bertz
13 Replies
8. Shell Programming and Scripting
Hello All,
I am automating a task using bash script and got stuck at this. From the below input,
Meta Device Members (20) :
{
----------------------------------------------------------------------
BCV DATA RDF DATA ... (7 Replies)
Discussion started by: Sam R
7 Replies
9. Shell Programming and Scripting
The lines in bold check the value of a user input, if it is not one of the expected genes (GJB2, MECP2, PHOX2B), the user is shown a list of formats to use and the variant is entered. It is then supposed to printf that entered variant? Thank you :).
name() {
printf "\n\n"
printf... (2 Replies)
Discussion started by: cmccabe
2 Replies
10. Shell Programming and Scripting
In the below bash the function execute is started with the while true at the end of the script. Currently, this works and processing does begin. The function panel in bold does not get called after execute completes, therefore the user does not get the menu selection and the files just loop... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT PHP
ps_begin_template
PS_BEGIN_TEMPLATE(3) 1 PS_BEGIN_TEMPLATE(3)
ps_begin_template - Start a new template
SYNOPSIS
int ps_begin_template (resource $psdoc, float $width, float $height)
DESCRIPTION
Starts a new template. A template is called a form in the postscript language. It is created similar to a pattern but used like an image.
Templates are often used for drawings which are placed several times through out the document, e.g. like a company logo. All drawing func-
tions may be used within a template. The template will not be drawn until it is placed by ps_place_image(3).
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $width
- The width of the template in pixel.
o $height
- The height of the template in pixel.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Creating and using a template
<?php
$ps = ps_new();
if (!ps_open_file($ps, "template.ps")) {
print "Cannot open PostScript file
";
exit;
}
ps_set_parameter($ps, "warning", "true");
ps_set_info($ps, "Creator", "template.php");
ps_set_info($ps, "Author", "Uwe Steinmann");
ps_set_info($ps, "Title", "Template example");
$pstemplate = ps_begin_template($ps, 30.0, 30.0);
ps_moveto($ps, 0, 0);
ps_lineto($ps, 30, 30);
ps_moveto($ps, 0, 30);
ps_lineto($ps, 30, 0);
ps_stroke($ps);
ps_end_template($ps);
ps_begin_page($ps, 596, 842);
ps_place_image($ps, $pstemplate, 20.0, 20.0, 1.0);
ps_place_image($ps, $pstemplate, 50.0, 30.0, 0.5);
ps_place_image($ps, $pstemplate, 70.0, 70.0, 0.6);
ps_place_image($ps, $pstemplate, 30.0, 50.0, 1.3);
ps_end_page($ps);
ps_close($ps);
ps_delete($ps);
?>
SEE ALSO
ps_end_template(3).
PHP Documentation Group PS_BEGIN_TEMPLATE(3)