Unix
What can be the parameters to char getenv(const char *name);?
I looked over various documentation on getenv(), all they describe is how to use it and what it does i.e environment variable whose name is specified as argument.[详细]
2023-04-08 11:58 分类:问答How to connect to a remote unix box from java and run unix script in it?
I need help in writing java code that can connect to a remote UNIX box, and run a script on that box.[详细]
2023-04-08 11:05 分类:问答Identifying DNS packets
W开发者_JS百科hen looking a packet byte code, how would you identify a dns packet. The IP header\'s protocol field would tell that a UDP frame follows, but inside the UDP frame no protocol field exist[详细]
2023-04-08 10:39 分类:问答Python: return output of ksh function
On Unix, how can Iretrieve the output of a ksh function as a Python variable? The function is called sset and is defined in my \".kshrc\".[详细]
2023-04-08 04:47 分类:问答Unix: traverse a directory
I need to traverse a directory so starting in one directory and going deeper into difference sub directories. However I also need to be able to have access to each individual file to modify the file.[详细]
2023-04-08 04:12 分类:问答unix open file for write given file descriptor
I want to open a file for write and I have been given the file descriptor for that file. I know开发者_运维知识库 that fdopen can be used to write to the file as follows:[详细]
2023-04-08 02:45 分类:问答Join all files in a directory, with a separator
I have a directory containing hundreds of files (each having several chars). I want to join them into a single file with a separator,开发者_开发百科 \"|\".[详细]
2023-04-08 02:44 分类:问答How can parents waits all child processes finish then exit when it receives SIGINT?
I\'m writing a multi process program in C. I hope parents process can wait all child processes finish then exit when[详细]
2023-04-08 01:57 分类:问答key logging in unix
I am a newbie to unix scripting, I want to do following and I have little clue how to proceed. I want to log the input and output of certain set of commands, given on the terminal, to a trace file. I[详细]
2023-04-08 01:43 分类:问答How to launch a new process with different program in Unix?
I heard that the Unix fork will copy current process. Does it mean exactly same program and state will be spawned in a new child process? I can\'t understand why it work in that way. Because it 开发者[详细]
2023-04-08 01:29 分类:问答