how to grep the source file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to grep the source file
# 1  
Old 11-16-2005
Question how to grep the source file

hi folks...

lets suppose i do

ps -ef | grep telnet <ip add>

then...

whats the way to find find out from which file this process
i.e. telnet <ip add> is called.
# 2  
Old 11-16-2005
Please post the output of

uname -a

We can answer questions like this much more easily if we know which Unix variant you are using.

Cheers
ZB
# 3  
Old 11-17-2005
Dear ZB

The output to uname -a is :

OSF1 bhanot V4.0 1530 alpha
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Match the amount fields in the source file vs trigger file

Hello, I have to write a script to compare the sum of the amount fields in a source file and the amount field in another file. details are: based on the name of the source file (say SALES as an example), a file already available in a path will be grabbed (say SALES_ParmFile) and this file... (4 Replies)
Discussion started by: vijaylak
4 Replies

2. Shell Programming and Scripting

Split File by Pattern with File Names in Source File... Awk?

Hi all, I'm pretty new to Shell scripting and I need some help to split a source text file into multiple files. The source has a row with pattern where the file needs to be split, and the pattern row also contains the file name of the destination for that specific piece. Here is an example: ... (2 Replies)
Discussion started by: cul8er
2 Replies

3. Programming

how to copy downloaded file into my source file folder (putty/unix)

I need to "Ensure that when you download libchat.a from the VLE you have copied it to the same folder on ius as your source files. You then refer to the library (and the libraries it needs) with: gcc -o outputfile sourcefile.c -L. -lchat -lsocket -lnsl" But I have no idea what this means! (I... (2 Replies)
Discussion started by: fakuse
2 Replies

4. Shell Programming and Scripting

Telnet and Grep source file

Hi, I need a script to do the following: 1. Telnet into a remote power controller for the switch (done) 2. Find the power controller version. In order to do that my script should run grep and the keyword to search is "network" (need help) 3. Do a bunch of other stuff. Now, once... (4 Replies)
Discussion started by: puneet1984
4 Replies

5. Shell Programming and Scripting

rsync - update file on backup when file renamed on source

hi all, Please help me with rsync. I configured rsync to preserve timestamps using the -a option. When i renamed fileA to fileB on source machine I have to copies at the backup server. The aim is to keep the most recent file. fileA & fileB has same contents. When i renamed fileB to... (2 Replies)
Discussion started by: coolatt
2 Replies

6. UNIX for Advanced & Expert Users

grep source code and exclude comments

I often find myself grepping source code for a variable name and many times the name would be present in comment lines that I 'd prefer not to see. Do you guys know any tricks to filter out comments? Example: snippet of the source code /*** * type comment 1 ***/ void ... (7 Replies)
Discussion started by: migurus
7 Replies

7. Shell Programming and Scripting

Post Shell programming: Question about source a file and read data from the file

This is shell programming assignment. It needs to create a file called .std_dbrc contains STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB (which includes all my simple database files) and I am gonna use this .std_dbrc in my script file (read the data from the database files) like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies

8. UNIX for Advanced & Expert Users

how to grep the source file

hi folks... lets suppose i do ps -ef | grep telnet <ip add> then... whats the way to find find out from which file this process i.e. telnet <ip add> is called. (1 Reply)
Discussion started by: icecool79us
1 Replies

9. Shell Programming and Scripting

Get file from source server and delete the ftp file

Hi there Everyone, I need some help/information/advise for the following questions: I'm writing the following script: #Beginning of the script ftp -n <source server> > ${log_dir}/test_get.log << END user <user_name>@<IP Address> <passwd> verbose bin !echo "'List Files Before Getting... (3 Replies)
Discussion started by: lweegp
3 Replies
Login or Register to Ask a Question