10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I want to create a shell script to gather user account information and displays the result to administrator.
I have created a script but its showing all the information when i search for username like:
amit@mx:~$ ./uinfo.sh amit
Username : amit
User Info ... (2 Replies)
Discussion started by: amit1986
2 Replies
2. Solaris
Hi
cannot find the path to a running process on a host.
I looked and tried some suggestions in forums to no avail.
can someone please help? I need to know where this process is starting from as we have several versions in multiple directories
--------- Process name
1201 1 0 Feb 14 ?... (14 Replies)
Discussion started by: mnassiri
14 Replies
3. UNIX for Advanced & Expert Users
Greetings.
Suppose I have a UNIX OS with automatic-restart (by default) of interrupted system calls,
or I use sigaction() with SA_RESTART flag.
If I am in the middle of a read(fd1, buf1, MAXSIZE) or a write(fd2, buf2, MAXSIZE),
and I am interrupted by a signal, then the system will... (1 Reply)
Discussion started by: aigoia
1 Replies
4. UNIX for Dummies Questions & Answers
Hey all,
I'm trying to execute a program and despite it appearing to be there, I keep getting this:
-bash: ./aisdispatcher: No such file or directoryTo run it, I'm going into the directory where it is stored and running
./aisdispatcher...the result of which should just be a listing of options... (10 Replies)
Discussion started by: pmd006
10 Replies
5. AIX
I am a programmer who works on an IBM i (including AS/400, iSeries, System i and Power).
In developing application software on the IBMi we use languages such as RPG/ILE and CLLE. There is a need also to use PF, LF, DSPF & PRTF to represent the physical/logical database and screen/print objects.... (0 Replies)
Discussion started by: Elias
0 Replies
6. Shell Programming and Scripting
A weird thing, happened today: When i do SCP from a remote server, file is not getting copied to here.
Application Server: Here is where i work, and have a login. I have several tweaks in .bashrc, and along with all those, today i called a PERL script from bashrc. So when ever i do scp from a... (4 Replies)
Discussion started by: thegeek
4 Replies
7. Shell Programming and Scripting
Guys I placed
#!path/awk -f
placed awk script
and used $1 to call 1st inputfile inside the script.
But some where I did mistake. Could you please help me run this script as executable
I forgot to mention I also used BEGIN before placing awk script. But nothing worked out.
Script
... (2 Replies)
Discussion started by: repinementer
2 Replies
8. Shell Programming and Scripting
I have been working on a script all day and am having very little success. Essentially, I am reading a file and trying to format the data in the file. I am currently trying to put the data into three separate files, so that I can paste them back together into a single output file.
Trying to... (16 Replies)
Discussion started by: synergy_texas
16 Replies
9. Programming
Hi,
I am trying to run simple client server c program in unix.At the compling stage server is creating an executable but the client is not.
below is the link to the source codes:
http://www.cs.rpi.edu/courses/sysprog/sockets/server.c
http://www.cs.rpi.edu/courses/sysprog/sockets/client.c
... (2 Replies)
Discussion started by: konas
2 Replies
10. IP Networking
Is there any facility to filter/identify the data calls and voice calls coming throug modem?
OR
Can we get the data or voice calls information through a script(preferably C Kermit)? (0 Replies)
Discussion started by: pcsaji
0 Replies
Tcl_FindExecutable(3) Tcl Library Procedures Tcl_FindExecutable(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_FindExecutable, Tcl_GetNameOfExecutable - identify or return the name of the binary file containing the application
SYNOPSIS
#include <tcl.h>
void
Tcl_FindExecutable(argv0)
const char *
Tcl_GetNameOfExecutable()
ARGUMENTS
char *argv0 (in) The first command-line argument to the program, which gives the application's name.
_________________________________________________________________
DESCRIPTION
The Tcl_FindExecutable procedure computes the full path name of the executable file from which the application was invoked and saves it for
Tcl's internal use. The executable's path name is needed for several purposes in Tcl. For example, it is needed on some platforms in the
implementation of the load command. It is also returned by the info nameofexecutable command.
On UNIX platforms this procedure is typically invoked as the very first thing in the application's main program; it must be passed argv[0]
as its argument. It is important not to change the working directory before the invocation. Tcl_FindExecutable uses argv0 along with the
PATH environment variable to find the application's executable, if possible. If it fails to find the binary, then future calls to info
nameofexecutable will return an empty string.
Tcl_GetNameOfExecutable simply returns a pointer to the internal full path name of the executable file as computed by Tcl_FindExecutable.
This procedure call is the C API equivalent to the info nameofexecutable command. NULL is returned if the internal full path name has not
been computed or unknown.
KEYWORDS
binary, executable file
Tcl 8.1 Tcl_FindExecutable(3)