Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Sys headers - running Linux C code on windows Post 302888499 by Corona688 on Friday 14th of February 2014 02:46:26 PM
Old 02-14-2014
You can easily post code here by using code tags, [code]stuff[/code][/code].

If you wanted to compile unmodified UNIX code under Windows you could use cygwin.
This User Gave Thanks to Corona688 For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Running MS-windows GUI from unix/linux

Hi i need some help , i would like to run a GUI application on windows from unix i dont need to see the gui just to activate it from remote . it shoud be from CLI on the unix . thanks GUY (1 Reply)
Discussion started by: koreng
1 Replies

2. Linux

Running Linux File Manager on Windows XP

OK: apologies (well) in advance if this is as stupid a question as it gets. I need to change the 'owner' on certain files and folders within my Linux web hosting account. Unfortunately I use Windows XP and now need some kind of Windows application that can open a window within XP that lets me... (1 Reply)
Discussion started by: Boa Prinz
1 Replies

3. Solaris

[need help] about after running sys-unconfig and config network for v890

hi expert, i had do sys-unconfig for my v890 sparc and had config for eri0 network interface and hostname but after the server bring up i got this error messages : NIS domainname is www.USSDGmdn-4.com starting rpc services: rpcbind keyserv done. Setting netmask of eri0 to 255.255.255.0... (5 Replies)
Discussion started by: bucci
5 Replies

4. Linux

Running Windows "inside" a Linux-like OS?

I'd like to know if it's possible to run Windows "inside" a Linux-like OS similar to how you can run Linux in Windows, rather than dual-booting them both. As I mentioned in an earlier post, I want to do some serious parallel computing which Windows isn't even capable of at the moment... But I'd... (6 Replies)
Discussion started by: heliotos
6 Replies

5. Linux

What's better for running Windows software in Linux, Wine or Windows VMware?

What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies

6. UNIX for Advanced & Expert Users

SYS CRONJOB just not running...

I'm trying to run "SAR -i 60" under #/var/spool/cron/crontabs/SYS 0,10,20,30,40,50 0-6 sh -c "/usr/lib/sa/sa1 60 10 &" 55 23 * 0-6 /usr/lib/sa/sa2 -i 900 -A machine is not running above cron job under "sys" at all. This suppose to run every minutes and all time in 24 hours. When day... (6 Replies)
Discussion started by: deal732
6 Replies

7. Red Hat

controlling tool running on Linux VM fron Windows

I have a virtual machine with RedHat. It has a command-line tool X that takes an input file + some control parameters, performs some processing and generates some input files. I have a Windows XP/Server 2003 box where an app Y is running. What I need to do is to control X from Y. That is, given an... (1 Reply)
Discussion started by: ilyaz
1 Replies

8. UNIX for Advanced & Expert Users

sys cron not running

Hi all, I have a solris 10 machine and i am facing some strange issues. My sys user cron is not executing. Can any one help on this issue? root@antsdp1b>svcs -a|grep -i cron online 1:08:55 svc:/system/cron:default root@antsdp1b> the cron process is also running. but whatever i... (5 Replies)
Discussion started by: vivek.goel.piet
5 Replies

9. Shell Programming and Scripting

Running Linux Script from Windows

forgive me if i am posting this question in wrong forum. I have a rsync script that runs on one server for rsync with another server (both linux) . Now I want to get control of that script from my windows 7 machine. Means I want to run that script from my windows machine whenever i want... (1 Reply)
Discussion started by: HarryReid
1 Replies
EVAL(3) 								 1								   EVAL(3)

eval - Evaluate a string as PHP code

SYNOPSIS
mixed eval (string $code) DESCRIPTION
Evaluates the given $code as PHP. Caution The eval(3) language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have carefully verified that there is no other option than to use this construct, pay special attention not to pass any user provided data into it without properly validating it beforehand. PARAMETERS
o $code - Valid PHP code to be evaluated. The code mustn't be wrapped in opening and closing PHP tags, i.e. 'echo "Hi!";' must be passed instead of '<? echo "Hi!"; >'. It is still possible to leave and reenter PHP mode though using the appropriate PHP tags, e.g. 'echo "In PHP mode!"; ?>In HTML mode!<? echo "Back in PHP mode!";'. Apart from that the passed code must be valid PHP. This includes that all statements must be properly terminated using a semicolon. 'echo "Hi!"' for example will cause a parse error, whereas 'echo "Hi!";' will work. A return statement will immediately terminate the evaluation of the code. The code will be exe- cuted in the scope of the code calling eval(3). Thus any variables defined or changed in the eval(3) call will remain visible after it terminates. RETURN VALUES
eval(3) returns NULL unless return is called in the evaluated code, in which case the value passed to return is returned. If there is a parse error in the evaluated code, eval(3) returns FALSE and execution of the following code continues normally. It is not possible to catch a parse error in eval(3) using set_error_handler(3). EXAMPLES
Example #1 eval(3) example - simple text merge <?php $string = 'cup'; $name = 'coffee'; $str = 'This is a $string with my $name in it.'; echo $str. " "; eval("$str = "$str";"); echo $str. " "; ?> The above example will output: This is a $string with my $name in it. This is a cup with my coffee in it. NOTES
Note Because this is a language construct and not a function, it cannot be called using variable functions. Tip As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the output of this function, and save it in a string (for example). Note In case of a fatal error in the evaluated code, the whole script exits. SEE ALSO
call_user_func(3). PHP Documentation Group EVAL(3)
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy