02-04-2010
That's why I asked whether or not the file is executable. If it is (the 'x' bit is set), it can be called without calling expect explicitly. Otherwise, you'll have to call it the same way in the script as you do on the command line.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
say i have written some perl scripts , now i like to call them in my unix shell
as unix command like "more" , "ls" , "grep" so that my say perl script called "foo.pl"
will be called from every where as "foo" or "foo arg1 arg2"?
Thanks (1 Reply)
Discussion started by: umen
1 Replies
2. Shell Programming and Scripting
Hi
I am not sure how to call a perl script from a tcsh shell. do i need to set any environment variables? your help is appreciated
Thanks (1 Reply)
Discussion started by: megastar
1 Replies
3. UNIX for Advanced & Expert Users
I've got to do a wget call in a Perl Script.
I am basically doing migration of a shell script which was previously doing it.
The code in the sh file was as follows.
wget -nv -o /tmp/wget.run.log -t 5 -w 10 http://windows-server/myapp/1try.asp?myparam=no
This wget command is executing an... (1 Reply)
Discussion started by: rahulrathod
1 Replies
4. Shell Programming and Scripting
I call a EXPECT script from my perl script with machine IP and a FIle. The script logins to the machine and exports the value. The values to be exported or stored in a file.
I have close to 10 machines and I have created 10 files and pass the corresponding files in command line, Now I could like... (4 Replies)
Discussion started by: ramkriz
4 Replies
5. Shell Programming and Scripting
hi,,
i have perl scipt with line :
system('./try.sh $t $d $m');
in shell scipt try.sh i have the line:
echo $1
its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies
6. Shell Programming and Scripting
Hi
I m new to perl. I m trying to write a perl script that calls a bash script; does anyone have a script already that they can provide or help me out? Thanks a lot. (2 Replies)
Discussion started by: adnan786
2 Replies
7. Shell Programming and Scripting
Hi
I have a successfullly run perl script (by issuing command "perl sub.pl" under shell mode) and this sub.pl will call sub.exp successfully. The sub.exp expect script is basically to login to a server and run some commands and put the output into a sub.txt file, it takes about 5 seconds to... (0 Replies)
Discussion started by: cxbest
0 Replies
8. Shell Programming and Scripting
Hello Gurus
Can anyone please let me know how to call .profle file in perl script
When I am calling the .profile file its giving error
Shall I create unix script which has .profile command and call perl script internally (2 Replies)
Discussion started by: Pratik4891
2 Replies
9. Shell Programming and Scripting
I'm attempting to write a bash script that will create a network between virtual machines. It accepts three arguments: an RSpec that describes the network topology, and two list of machines (servers and clients).
I have a (working) Perl script that I want to call. This Perl script takes an RSpec... (6 Replies)
Discussion started by: mecaka
6 Replies
10. UNIX for Advanced & Expert Users
Hi Team,
I have to execute a task from my local machine, where i keep my .expect,.sh, .bash and .python scripts .Task are coded in the script and has to be executed at remote machine.
for that i used following task
.....
SCRIPT 1:
cat shell_check.sh
read value
if
then
expect... (3 Replies)
Discussion started by: Sivarajan N
3 Replies
LEARN ABOUT HPUX
smonitor
smonitor(3C) smonitor(3C)
NAME
smonitor() - prepare execution profile
SYNOPSIS
DESCRIPTION
is an interface to sprofil(2) for collecting sampling information for execution profiles.
To use link in the library by specifying on the linker command line or on the compiler command line. See gprof(1).
For any application compiled with the option, the library collects profiling sampling information. But if an application requires finer
control over profiling, the library yields control to an application that uses
To stop the collection of sampling information, use:
Use gprof(1) to examine the results.
Parameters
is an array of structures describing the regions to be profiled. It is defined in header The structure has the following fields:
The fields are as follows:
is the start address of the text segment of the load module.
is the end address of the text segment of the load module.
is the name of the load module (not the path name). The name of the load module should be the same as recorded in the executable by
is the number of elements in the array regions.
is the starting address a buffer to collect sampling information.
is the length of is the only memory region used by to collect profiling information, so it should be big enough for all specified regions.
does not initialize With more than one call to in the same process, dumps the sampling information collected with the last call. does not
discard the information collected in previous calls if it is present in the buffer passed to last call of
is unused and kept for future usage.
is used to choose 16-bit or 32-bit buckets to collect sampling information. If is set to treats the buffer as an array of 16-bit buckets;
if set to treats the buffer as an array of 32-bit buckets. For more information refer to sprofil(2).
EXTERNAL INFLUENCES
Environment Variables
The behavior of is controlled by the environment variable. See gprof(1). behaves with different settings of as follows:
does not set up the buffers to collect sampling information.
It is expected that will be called explicitly to collect the sampling information. So it is the ideal case to call the explicitly.
sets up the sampling buffer for all the load modules and starts
to collect the sampling information. Now if is invoked explicitly, is stopped, the buffer allocated by is deallocated, and all the
sampling information collected prior to calling is lost. uses the buffer passed as an argument and starts again.
sets up the sampling buffer for the load modules
ldm1 and ldm2 and starts to collect the sampling information. Now if is invoked explicitly, is stopped, the buffer allocated by is
deallocated, and all the sampling information collected prior to calling is lost. uses the buffer passed as an argument and starts
again.
If is not set, behaves as though
FILES
SEE ALSO
cc(1), gprof(1), sprofil(2).
smonitor(3C)