Ask a Question related to PERL Beginners, Design and Development.
-
But However #1
sh: bad number
Hi,
I compiled a simple program with perl. But I ran into some problems.
sh: campusUnderAttack.out: bad number
I try to execute a program and input the result to antother file
"campusunderAttack.out"
like this:
#!/usr/bin/perl
#
# Run campus scenario and plot result
#
#run 'campus network under attack'
print STDERR "Running campus under attack scenario...\n";
#`java SSF.Net.Net 57600 campusUnderAttack.dml >& campusUnderAttack.out`;
I executed this program under Unix (sun) with bash shell.
Thanks,
wenpeng
__________________________________________________ _______________
Tired of spam? Get advanced junk mail protection with MSN 8.
[url]http://join.msn.com/?page=features/junkmail[/url]
But However Guest
-
int Number to text Number Function / UDF ?
Is there a function that converts e.g. 3 to Three? Probably not but I just thought I'd ask. -
Number to hex ?
Looking at a few scripts, too disguise ID numbers or make them random, there appears to be a conversion to an alphanumeric number. e.g.... -
sort from the smallest number to the highest number
Hi Just say I want to sort the row by using the fifth column data as reference from the smallest the largest number, if using sort, It will give... -
Number formatting?
Any convenient ways (without rolling my own) of formatting numbers to include thousands separators, e.g. 1199123 printed as "1,199,123" --... -
tty-dev-number <-> /dev/pts
Hi, I'm writing a program under Solaris (sparc) that has to know from what machine a user is logged on who is starting that program. Reading... -
Drieux #2
Re: sh: bad number
On Friday, Nov 21, 2003, at 02:21 US/Pacific, but however wrote:
[..]> Hi,
> I compiled a simple program with perl. But I ran into some problems.
>
> sh: campusUnderAttack.out: bad number
>
> I try to execute a program and input the result to antother file
> "campusunderAttack.out"
> like this:
>
> #!/usr/bin/perl
> #
> # Run campus scenario and plot result
> #
>
> #run 'campus network under attack'
> print STDERR "Running campus under attack scenario...\n";
> #`java SSF.Net.Net 57600 campusUnderAttack.dml >&
> campusUnderAttack.out`;
>
> I executed this program under Unix (sun) with bash shell.
I think you may have more than a few issues here.
i'm not at all sure what you mean by
'compiled a simple program with perl'
nor how exactly you tried to run it.
so you may need to provide us with a whole lot more details
about
a. what you did
b. how you did it
c. what issues you really need answered.
ciao
drieux
---
Drieux Guest
-
John W. Krahn #3
Re: sh: bad number
But However wrote:
Hello,>
> Hi,
^^> I compiled a simple program with perl. But I ran into some problems.
>
> sh: campusUnderAttack.out: bad number
>
> I try to execute a program and input the result to antother file
> "campusunderAttack.out"
> like this:
>
> #!/usr/bin/perl
> #
> # Run campus scenario and plot result
> #
>
> #run 'campus network under attack'
> print STDERR "Running campus under attack scenario...\n";
> #`java SSF.Net.Net 57600 campusUnderAttack.dml >& campusUnderAttack.out`;
It looks like your problem is using '>&', did you mean to use '>'
instead?
John
--
use Perl;
program
fulfillment
John W. Krahn Guest
-
R. Joseph Newton #4
Re: sh: bad number
but however wrote:
I'm a little unclear on the problem here. It doesn't seem to be a Perl> Hi,
> I compiled a simple program with perl. But I ran into some problems.
>
> sh: campusUnderAttack.out: bad number
>
> I try to execute a program and input the result to antother file
> "campusunderAttack.out"
> like this:
>
> #!/usr/bin/perl
> #
> # Run campus scenario and plot result
> #
>
> #run 'campus network under attack'
> print STDERR "Running campus under attack scenario...\n";
> #`java SSF.Net.Net 57600 campusUnderAttack.dml >& campusUnderAttack.out`;
>
> I executed this program under Unix (sun) with bash shell.
>
> Thanks,
>
> wenpeng
issue. I tried the Perl code from the above, and it gave exactly the output
I would expect:
Greetings! E:\d_drive\perlStuff>perl -w
print STDERR "Running campus under attack scenario...\n";
^Z
Running campus under attack scenario...
Greetings! E:\d_drive\perlStuff>
Are you trying to mix shell and Perl?
Joseph
R. Joseph Newton Guest



Reply With Quote

