473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to open another program in unix

How to open an application using unix script ?
Feb 28 '12 #1
3 1816
sicarie
4,677 Expert Mod 4TB
Just call the binary with whatever options you want. The below script calls the application 'ifconfig.'

Expand|Select|Wrap|Line Numbers
  1. #!/bin/bash
  2. # shell script to show how to call a program
  3. #    in this case, call ifconfig to set ip
  4. # by: sicarie 2012-02-28
  5.  
  6. #calling ifconfig
  7. /sbin/ifconfig -i eth0 192.168.0.10
  8.  
  9. #done

Most binaries are in /bin, /sbin, /usr/bin, or /usr/sbin. There are a few other places, but you should be able to locate them with either the whereis or the find commands.
Feb 28 '12 #2
Most binaries are in /bin, /sbin, /usr/bin, or /usr/sbin.
If the application is installed in a global location accessible by the user, the program 'which' will return the binaries location.
Mar 4 '12 #3
sicarie
4,677 Expert Mod 4TB
I'm constantly surprised by the wealth of 'find' programs in Linux - and 'which' is another great option for determining the absolute location - thanks no2pencil!
Mar 5 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Roy Riddex | last post by:
Hi I'm wanting to create a cd-rom which boots automatically when it's inserted into the computer. What I hope to achieve is for a VB6 program to run automatically when the cd boots up. Can this...
3
by: Gilles Cadorel | last post by:
I'd like to add in a HTML page a button, that open a Unix Emulation on a new Windows, when I clik on it. I'm using WRQ Reflection to connect to Unix hosts. The problem is that I don't want the...
2
by: Michael Murschell | last post by:
Is it possible to open a program, like Microsoft Word, from within an ASP page? How? The program I am wanting to open is actually a CRM program that I can send an event ID and it would open that...
2
by: Silent | last post by:
Hello everybody..i'm knew here and looking for a bit of help..heres my problem: I am in the process of building a program to Install some programs silently from a PC. this program is basically a...
36
by: lovecreatesbeauty | last post by:
In the C programming language, I/O operation functions are declared in stdio.h, for example, fopen(), fclose(), fwrite(), fread(), fseek() ... But another set of I/O functions are also defined in...
1
by: mcmillanje | last post by:
HI! I'm hoping to make a simple c++ program to execute yafray, (xml based cgi renderer, I use it with blender). The syntax to enter in command prompt, (or dos, if you don't have windows open, or...
10
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm building a technician's tool and I'm trying to create a Jump Panel of buttons to the Windows System32 folder to open files programmatically. I...
7
by: jonathandrott | last post by:
sorry newbie question probably. i'm trying to open an specific folder. open each file with in the folder individually and process each one. all the processing code has been written. i'm looking...
1
by: =?Utf-8?B?c2tvZ2dh?= | last post by:
I am unable to open the start menu using the mouse. It just makes the fault sound, and nothing happens. I can't also not use the toolbar to access open programs such as internet explorer. I can't...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.