Sponsored Content
Top Forums UNIX for Dummies Questions & Answers script that will list .c programs Post 82459 by Saggas on Thursday 1st of September 2005 08:38:10 AM
Old 09-01-2005
no the program just ran and ended, it printed the message asking if i wanted to delete it but it ended without letting me choose.
 

10 More Discussions You Might Find Interesting

1. Programming

How to Compile programs using cc??

How do you Compile programs using cc?? I'm lost. Do I need to buy C or what? I'm only going to use it very few times a year. From what everyone seems to be telling me, it sounds like it is build into the Unix system but I'm having no luck. Please help or just point me in the right direction. ... (7 Replies)
Discussion started by: spotanddot
7 Replies

2. UNIX for Dummies Questions & Answers

Where did my programs go?

I notice that (Mandrake) Linux and Windows do not seem to operate alike in terms of installing third party software. Windows, on one hand, creates icons and adds items to the Start Menu, with the help of the InstallShield--or equivalent, of course, but Linux, on the other hand, seems to care... (3 Replies)
Discussion started by: helvetica
3 Replies

3. UNIX for Dummies Questions & Answers

Creation of a script to launch several programs

I'm really new to this, so thanks for your patience... I've been trying to create a script to launch several applications at once. I've been researching books and forums, but I end up with more questions than answers. As much as I hate to say it, I don't know if I can figure it out on my own...... (3 Replies)
Discussion started by: j.middlefinger
3 Replies

4. Shell Programming and Scripting

Gen. Question - Script calls multiple programs - Return Code Handling?

General Question: If a script calls multiple external programs (external to the script, but still on unix), where do the return codes go? Let's say one of external programs fails, does the entire script fail and send a non-zero return code to the job scheduling software, or is the return code sent... (1 Reply)
Discussion started by: jnanasakti
1 Replies

5. UNIX for Dummies Questions & Answers

Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?

Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies

6. Programming

Running programs from a Python script

Any idea how I can run a program from a phyton script? For example, in csh I will do $tpath/tsimplex base=$fbase data=$fdata restore=$frestore \ nxp=$nx nzp=$nz param=$param intp=$intp nlay=$nlay \ varp=$varp sigma0=$sigma maxiter=$maxiter tol=$tol \ ... (2 Replies)
Discussion started by: kristinu
2 Replies

7. Shell Programming and Scripting

Interpretation of $variables inside programs run from a script

Hi, I am running a shell script that executes a program. Inside this program, variables are also referenced using a dollar symbol, eg. $a, $thething, and the shell script is misinterpreting them as variables relevant to the shell script rather than relevant to the program run from inside the... (2 Replies)
Discussion started by: TheBigH
2 Replies

8. Shell Programming and Scripting

Using programs to open files from within the script?

I am suppose to make a program that cuts the extension off of a file. It uses that .ext to decide which program needs to be used to open the file. This only finds the name of the program from a list of programs I made. My problem is when it has the name of the program it needs to use, how can I... (2 Replies)
Discussion started by: dordrix
2 Replies

9. Shell Programming and Scripting

Specifying a list name as argument and using that list in script.

Is there a way I can specify the name of a list as an argument to a shell script and then use the values of that list name in the script? I need to do this WITHOUT using case statements. Something like this: check.sh list1 #!/bin/bash list1="www.amazon.com www.google.com"... (9 Replies)
Discussion started by: gctaylor
9 Replies

10. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies
NUMACTL(8)						   Linux Administrator's Manual 						NUMACTL(8)

NAME
numastat - Print statistics about NUMA memory allocation SYNOPSIS
numastat DESCRIPTION
numastat displays NUMA allocations statistics from the kernel memory allocator. Each process has NUMA policies that specifies on which node pages are allocated. See set_mempolicy(2) or numactl(8) on details of the available policies. The numastat counters keep track on what nodes memory is finally allocated. The counters are separated for each node. Each count event is the allocation of a page of memory. numa_hit is the number of allocations where an allocation was intended for that node and succeeded there. numa_miss shows how often an allocation was intended for this node, but ended up on another node due to low memory. numa_foreign is the number of allocations that were intended for another node, but ended up on this node. Each numa_foreign event has a numa_miss on another node. interleave_hit is the number of interleave policy allocations that were intended for a specific node and succeeded there. local_node is incremented when a process running on the node allocated memory on the same node. other_node is incremented when a process running on another node allocated memory on that node. SEE ALSO
numactl(8) set_mempolicy(2) numa(3) NOTES
numastat output is only available on NUMA systems. numastat assumes the output terminal has a width of 80 characters and tries to format the output accordingly. EXAMPLES
watch -n1 numastat watch -n1 --differences=accumulative numastat FILES
/sys/devices/system/node/node*/numastat BUGS
The output formatting on machines with a large number of nodes could be improved. SuSE Labs Nov 2004 NUMACTL(8)
All times are GMT -4. The time now is 11:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy