9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've created a tag in the makefile:
mytag: $(shell ${PWD}/script.sh)
When i do: make clean - the script is executed
When i perform make or make mytag the script is again executed with the output:
make: Nothing to be done for mytag
What i want ?
I want script.sh to be executed only... (0 Replies)
Discussion started by: Pufo
0 Replies
2. Shell Programming and Scripting
Hii
I wanna call a batch file from a make file. Doesn't work , what is the procedure to do this.? Any idea
thanks:eek: (2 Replies)
Discussion started by: krishnampkkm
2 Replies
3. Shell Programming and Scripting
I am trying to communicate with the kernel through the /proc filesystem. I have written abc to my def module. But on doing cat cat /proc/def, I am not able to see "abc". Here is my code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (int argc,char **argv)
{
char mystr;... (0 Replies)
Discussion started by: AKD
0 Replies
4. Shell Programming and Scripting
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies
5. Programming
Hi
I'm studing the system call. I've written a small program that return the time spent in doing some operations. Now I'd like to write one that return the time spent in user mode of a process.
I'm reading that i should use the tms struct:
clock_t times(struct tms *buf);
struct tms {... (2 Replies)
Discussion started by: Dedalus
2 Replies
6. Shell Programming and Scripting
Hi,
How to write a system calls in a script ?
> cd $HOME
> ls -ltr
thanks in advance.. (10 Replies)
Discussion started by: hegdeshashi
10 Replies
7. Programming
Hi all, this warning is driving me nuts. I use -pedantic with -Wall and -Werror so this needs to be fixed.
BUILD: GNU-Linux-x86
Any ideas?
struct sockaddr_in server_addr;
int addr_len = sizeof (server_addr);
fd = accept(link->socket_fd,
(struct sockaddr_in *)... (2 Replies)
Discussion started by: personificator
2 Replies
8. Infrastructure Monitoring
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Discussion started by: Zaxon
4 Replies
9. UNIX for Advanced & Expert Users
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Discussion started by: muru
2 Replies