8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I just define the variable in script and use those script in another script but the variable not recognize.
test1.sh
#!/bin/bash
DB="test_db"
USR="test_user"
PWD="test_pwd"
HST="24.254.87.12"
test2.sh
#!/bin/bash
./test1.sh
mysql -u $USR -p $PWD -h $HST... (2 Replies)
Discussion started by: fspalero
2 Replies
2. Programming
Hey everyone. So I'm looking at a few C programming resources, and it seems, by convention how you should write and define a function, is first declare it's existence before your main...then call it somewhere in your main, and then define after, at the end of the program? Is this necessary? I mean... (7 Replies)
Discussion started by: Lost in Cyberia
7 Replies
3. Shell Programming and Scripting
Hi,
Is it possible in perl to have a hash defined with variables as theirs key values, like:
%account = ('username' => 'boy', 'password' => $password);
Thanks (1 Reply)
Discussion started by: zing_foru
1 Replies
4. Programming
Hi,
I had a head file, looks like
#define MIN_NUM 10
#define MAX_NUM 10
is there any way to get "MAX_NUM" from 10?
thanks.
peter (9 Replies)
Discussion started by: laopi
9 Replies
5. Programming
if i do this in C
#define NUM 1234512345
then how come i cant print it out using
int main(int argc, char **argv) {
printf("%d\n", NUM);
return 0;
}
well the result is -1219236538, why isnt it 1234512345 ? (7 Replies)
Discussion started by: omega666
7 Replies
6. Programming
Hello,
I would like to conditionaly comment in my code source some fields from arrays. So I use the property ## from the #define definition.
my code:
...
#define slet /##*
#define etsl *##/
...
const T_SVT_ADLL_A653_DESC A_DESC =
{
{ slet qwerty etsl SLICING,... (3 Replies)
Discussion started by: cypleen
3 Replies
7. Shell Programming and Scripting
hi
I have a perl script from which I call a shell script and pass mail variable to it.
The mail works fine if I give 1 recipient but fails for multiple.
conv.pl:-
$mialing = "anu\@abc.com"
rest.sh $mialing
rest.sh
mail -s "hi" $1
This works fine
But I need to define multiple... (2 Replies)
Discussion started by: infyanurag
2 Replies
8. Programming
in the header file orville.h, outside of the #ifdef #endif , there is the following
#define JOB_CONTROL /* support job-control */
As you can see, the JOB_CONTROL macro has no value associated with it. Here is what I go when I ran grep on the entire source code.
$ grep -iR... (6 Replies)
Discussion started by: frequency8
6 Replies
PERLMACOS(1) Perl Programmers Reference Guide PERLMACOS(1)
NAME
README.macos - Perl under Mac OS (Classic)
SYNOPSIS
This document briefly describes perl under Mac OS (Classic). If you are running perl under Mac OS X, you don't want to be here (unless you
are in the Classic environment under Mac OS X).
When we say "Mac OS" below, we mean Mac OS 7, 8, and 9, and not Mac OS X.
DESCRIPTION
The latest perl source itself builds on Mac OS, with some additional pieces. Support for Mac OS is now in the perl core, and MacPerl is
kept in close sync with regular perl releases.
To build perl for Mac OS (as an MPW tool), you will need the addition of the macos subdirectory, distributed separately. It includes extra
source files, config files, and make files. It also includes extra Mac-specific modules.
To build the MacPerl application, you will also need the macperl directory, which includes the source files for creating the application
itself.
All of this is available from the development site, via HTTP (in the MacPerl Installer, which includes all the source and binaries) and
anonymous CVS.
http://dev.macperl.org/
The source is also in the main perl repository in the macperl branch (the 5.6 source is in the maint-5.6/macperl branch).
You will also need compilers and libraries, all of them freely available. These are linked to from the SourceForge site. Go that site for
all things having to do with MacPerl development.
MacPerl 5.6.1 and later are supported on Mac OS 8.1 and later, for 68040 and PowerPC architectures. The MPW tool may be used on Mac OS
7.5.5 and 68030 computers.
MacPerl 5.2.0r4 is also available, on the CPAN and on SourceForge. It is based on perl 5.004, and works with Mac OS 7.5.5 and 68030 com-
puters.
AUTHOR
perl was ported to Mac OS by Matthias Neeracher <neeracher@mac.com>. It is currently maintained by Chris Nandor <pudge@pobox.com>.
DATE
Last modified 2002.05.02.
perl v5.8.0 2003-02-18 PERLMACOS(1)