Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to execute program without using ./ or sh Post 302389024 by matrixmadhan on Friday 22nd of January 2010 07:23:01 AM
Old 01-22-2010
Everybody is a newbie when starting, don't worry about that.
Follow the forum regularly you will learn a lot here - many contributors here are live examples for that ! Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. Programming

execve to execute a program

I tried using the following code to execute a program but it doesnt seems to be working .. I would like to know whats wrong wit it . execve("/bin/cat", "words", NULL); (0 Replies)
Discussion started by: winsonlee
0 Replies

2. Shell Programming and Scripting

how to execute this program?

Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 32768 16016 52% 2271 14% / /dev/hd2 4587520 1889420 59% 37791 4% /usr /dev/hd9var 65536 12032 82% 518 4% /var /dev/hd3 819200 637832 ... (1 Reply)
Discussion started by: sathyaac
1 Replies

3. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

4. Shell Programming and Scripting

C program to execute shell script

Hi, Can anyone pls give a sample to execute a shell script from C program Thanks (2 Replies)
Discussion started by: baigmd
2 Replies

5. Programming

C program to execute shell script

Hi, Can anyone give me a sample code to execute shell script from C program. Thanks (6 Replies)
Discussion started by: baigmd
6 Replies

6. Shell Programming and Scripting

Execute a C program from Shell

Hi I want to create a shell script tha executes a C program and then retrieves information about it. I managed to run the program with: #!/bin/bash gcc -o program program.c ./program Now i want to get the id of the process (pid) Any help would be appreciated, Thank you (18 Replies)
Discussion started by: nteath
18 Replies

7. Shell Programming and Scripting

Execute C program in Current shell

Hello, I have a c program executable which I need to run inside a shell script. But the c program runs in a subshell because of which all the actions done by the c program is not available to the current shell. Is there any way to execute a C program binary executable in the current shell? (4 Replies)
Discussion started by: sachinverma
4 Replies

8. Ubuntu

I can't execute a C++ program, help!

My professor gave me a code with no errors. When I compile it's fine, it doesn't show any errors, but when I try to execute it shows this: line 3: syntax error near unexpected token '(' line 3: 'int main()' I searched through the Internet but I couldn't find any solution. Please!!!... (1 Reply)
Discussion started by: rosiiieee
1 Replies

9. Shell Programming and Scripting

Execute a command after a program was launched

Hi Experts, I am creating a script to monitor a certain applications running in my Unix system. My script order goes this way: df -h /of/a/filesystem tail -5 /path/to/an/application/availability su -c "jsmon pf=(profile of my application) `echo "p"`" usradm #EOF I am... (7 Replies)
Discussion started by: Xworks
7 Replies

10. UNIX for Advanced & Expert Users

Program Does not execute

Hi there, When I am trying to execute any shell script. The shell script only execute line 1 and I notice that the rest o the program was not executed. Please advise. # bash +x vmscript-4.sh Even when I enter this command there is not output. sudo su cd /tmp cp... (2 Replies)
Discussion started by: alvinoo
2 Replies
THINKFAN(1)							     thinkfan							       THINKFAN(1)

NAME
thinkfan - A simple fan control program SYNOPSIS
thinkfan [-hnqzD [-b BIAS] [-c CONFIG] [-s SECONDS] [-p [DELAY]]] DESCRIPTION
Thinkfan can use temperature inputs and one PWM control file in /sys/class/hwmon or the Thinkpad-specific thinkpad_acpi interface in /proc/acpi/ibm. If nothing is specified, it tries to use /proc/acpi/ibm. WARNING: This program does only very basic sanity checking on the configuration. That means that you can set your temperature limits as insane as you like. Thinkfan has two modes of operation: SIMPLE MODE In simple mode, it uses only the highest temperature found in the system. That may be dangerous, e.g. for hard disks. That's why you should provide a correction value (i.e. add 10-15 [u00B0]C) for the sensor that has the temperature of your hard disk (or battery...). See the example config files for details about that. COMPLEX MODE In complex mode, temperature limits are defined for each sensor thinkfan knows about. Setting suitable limits for each sensor in your sys- tem will probably require a bit of experimentation and good knowledge about your hardware, but it's the safest way of keeping each compo- nent within its specified temperature range. See http://www.thinkwiki.org/wiki/Thermal_Sensors for details on which sensor measures what temperature in a Thinkpad. On other systems you'll have to find out on your own. See the example configs to learn about the syntax. CONFIGURATION
Some example configurations are provided with the source package. For detailed explanations please read the README file. If you installed thinkfan from a distribution package, you may find them under /usr/share/doc or wherever your package manager puts documentation. OPTIONS
-h Show a short help message -s Maximum seconds between temperature updates (default: 5) -b Floating point number (0 ~ 20) to control rising temperature exaggeration (see README for why this is needed). Default 5.0 -c Load different configuration file (default: /etc/thinkfan.conf) -n Do not become a daemon, log to both terminal and syslog -q Be quiet (no status info on terminal) -z Assume we don't have to worry about resuming from standby when using the sysfs interface (see README!) -p Use the pulsing-fan workaround (for older Thinkpads). Takes an optional floating-point argument (0-10s) as depulsing duration. Default 0.5s. -D DANGEROUS mode: Disable all sanity checks. May damage your hardware!! BUGS
If you have any problems with thinkfan, please go to the help forum at sf.net: http://sourceforge.net/projects/thinkfan/forums/forum/905019 thinkfan 0.8 October 2011 THINKFAN(1)
All times are GMT -4. The time now is 08:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy