To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Hi All,
i am running a shell script in which there is a command
`ps -ef | grep smon > db`
When i execute this command in the command prompt i am getting the desired output..but when the script is executed..the db file is getting created but with no values...I could not find the reason for... (2 Replies)
Hi all,
i am trying to remotely execute a script from a different server.
this is the code that i use :
#!bin/sh
pwd
(sleep 1 echo "username"
sleep 2 echo "pwd"
sleep 2 echo "cd /path/to/file"
if
then
echo "script1.sh"
echo "mailx -s "Task Executed"... (1 Reply)
Hi everybody,
In a csh script, i need to run 4 time the same prog with different parameters. What i want is to run them in parallel. for this i use the command
toto1.sh & toto2.sh & toto3.sh & toto4.sh
For this I have no problem. In fact, I need to wait until all the programs are over to... (2 Replies)
Hi all,
I want to use perl string manipulation commands in my shell script.
I have written following script.
echo "enter name"
read name
perl -e '$m=length($name);
echo $m
it gives an error: unrecognized token in perl command line.
do not suggest me an equivalent command of shell... (3 Replies)
Hi All,
I have a small issue with my csh script which I am using to FTP a file. What I know is...there are two commands to execute script.. 'sh <file>' & '\<file>'. When I execute my script with command 'sh <file>', it gives me syntax error while it runs successfully with command '\<file>'. I am... (3 Replies)
Hi,
I'm installing a DHCPD Server with the packages from a distro SLES11 SP1 (dhcp-server-3.1.1-7.12).
And a DNS Server with PowerDNS:
pdns-recursor-3.3-1
pdns-static-3.0-1
The DHCP update de DNS Server, but PowerDNS is not RFC 2135 compliant, and I have to update the MySQL register... (5 Replies)
Hi,
I am having a shell script on Solaris 10 which has a while loop as shown below.
#!/usr/bin/ksh
#
while
do
sleep 60
done
Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
#/bin/sh
echo "enter the user name"
read $username
echo "Enter new home directory"
read $newhd
usermod -d $newhd $username ;;
error while executing :
enter the user name
Rev
Enter new home directory:
/home/58745
usermod: option requires an argument -- 'd'
Try `usermod --help' or... (2 Replies)
Discussion started by: Revanth547
2 Replies
LEARN ABOUT V7
textout_ex
textout_ex(3alleg4) Allegro manual textout_ex(3alleg4)NAME
textout_ex - Writes a string on a bitmap. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void textout_ex(BITMAP *bmp, const FONT *f, const char *s, int x, int y, int color, int bg);
DESCRIPTION
Writes the string `s' onto the bitmap at position x, y, using the specified font, foreground color and background color. If the background
color is -1, then the text is written transparently. If the foreground color is -1 and a color font is in use, it will be drawn using the
colors from the original font bitmap (the one you imported into the grabber program), which allows multicolored text output. For high and
true color fonts, the foreground color is ignored and always treated as -1. Example:
/* Show the program's version in blue letters. */
textout_ex(screen, font, "v4.2.0-beta2", 10, 10,
makecol(0, 0, 255), -1);
SEE ALSO font(3alleg4), textout_centre_ex(3alleg4), textout_right_ex(3alleg4), textout_justify_ex(3alleg4), textprintf_ex(3alleg4),
text_height(3alleg4), text_length(3alleg4)Allegro version 4.4.2 textout_ex(3alleg4)