Search Results

Search: Posts Made By: g.pi
20,627
Posted By g.pi
Xterm needs a X server to contact. Your friend...
Xterm needs a X server to contact. Your friend either could have either set the env. var, DISPLAY, to point to your X server before starting the xterm or he could have invoked xterm as, xterm...
18,898
Posted By g.pi
Try xterm -hold -e <script>&
Try xterm -hold -e <script>&
2,369
Posted By g.pi
This seems to work for me echo -e '\E[0;46m...
This seems to work for me
echo -e '\E[0;46m \E[0;45m \E[219m\c'
6,149
Posted By g.pi
My 2 cents regarding your question about ksh: If...
My 2 cents regarding your question about ksh: If you are running the same version of ksh on Linux, you should be fine. However, it is the other programs that the scripts may be invoking, that you...
2,035
Posted By g.pi
rajesh, shouldn't you be using put instead of the...
rajesh, shouldn't you be using put instead of the get, if you are sending a file across?
3,756
Posted By g.pi
@Andrey (yazu), thanks for the link to the book. ...
@Andrey (yazu), thanks for the link to the book. I appreciate it.

- GP
4,770
Posted By g.pi
Again, a sample output from each of the commands...
Again, a sample output from each of the commands would have helped. Seems like you have multiple instances of MSTRSvr. If the intent is to get the pid for one of them, try:| head -1 before the |...
4,770
Posted By g.pi
Something like this seems to work for me, fine...
Something like this seems to work for me, fine (on Ubuntu). Perhaps, if you can provide more details as to your OS and a sample output, I may be able to help you better.
1,248
Posted By g.pi
@eawedat: I don't know about csh. Most of it...
@eawedat: I don't know about csh. Most of it should also work in ksh.
2,005
Posted By g.pi
This is because you have double quotes in your...
This is because you have double quotes in your awk script, around the filename, final.txt:


I don't believe you need this. If you do, you can escape it by using the backslash (\), before each of...
2,408
Posted By g.pi
@Carona688, thanks for pointing that out. Never...
@Carona688, thanks for pointing that out. Never having used it before, I assumed that -depth works similarly on Unix. Just found out, otherwise. So how would one go about doing something similar...
2,408
Posted By g.pi
find takes an argument -maxdepth. Here is what...
find takes an argument -maxdepth. Here is what the manpage says about maxdepth:

So, you can use -maxdepth 1 as an additional arg to you find command.

- GP
2,337
Posted By g.pi
Let me try and answer your questions. If you are...
Let me try and answer your questions. If you are new to awk and would like to learn more, here is a good book that I can recommend: sed & awk, Second Edition - O'Reilly Media...
2,836
Posted By g.pi
The easiest way to do this is by using, join. ...
The easiest way to do this is by using, join. Join joins the 2 files based on a specified field, in your case field 1. This is the first time that I am using join myself and this may be one way to...
3,971
Posted By g.pi
That is perfect. Did not know something like...
That is perfect. Did not know something like rsync, existed. Thanks, Frank!!

- GP
8,412
Posted By g.pi
Puneet, I seem to have more questions than...
Puneet, I seem to have more questions than answers, for you. Is rsh or rlogin an option?

Please note that ssh is a preferred way to do these things, as it is more secure. Perhaps, you can...
3,971
Posted By g.pi
Here is another way to do this, but Carona688's...
Here is another way to do this, but Carona688's solution is more efficient.
num_files=$(ls ~/tmp/ | grep -v "total" | wc -l); if [ $num_files -gt 0 ]; then echo "found files"; else echo "no files";...
3,971
Posted By g.pi
Can you use a leading character of the file name?...
Can you use a leading character of the file name? For example, the -f works (at least in ksh93 on Ubuntu) if you have files named file1, file2, etc. in your directory, and you look for...
8,412
Posted By g.pi
Puneet, I am not sure how to do this using...
Puneet, I am not sure how to do this using telnet. ssh is an option that I can think of. Would you be able use ssh, instead?
3,015
Posted By g.pi
Manubatham, per the awk man page, the variables...
Manubatham, per the awk man page, the variables that you supply with the -v arg, are available in the BEGIN section only:

Here is how you can use it: awk -v "Jan=1" 'BEGIN { print Jan }' This...
1,248
Posted By g.pi
Did you try the man page for ksh? (man ksh) The...
Did you try the man page for ksh? (man ksh) The man page has the info that you are looking for. If you have additional questions, after reading the specific areas in the man page, one of us can...
1,154
Posted By g.pi
A moderator will probably also tell you this - no...
A moderator will probably also tell you this - no double dipping. You asked this same question in the Unix for Dummies section.
1,313
Posted By g.pi
When you execute it as ./setUP, a child shell is...
When you execute it as ./setUP, a child shell is invoked first and them the setUP script is invoked in the child shell. So the var_name is set in that (child) shell and is available to it and its...
1,653
Posted By g.pi
Just so that I am clear, are you trying to delete...
Just so that I am clear, are you trying to delete folders? I am asking because rm -f won't work on folders.
2,729
Posted By g.pi
Try this in you shell script, before your SQL...
Try this in you shell script, before your SQL statement:

cat prevwk.dat | read pCW_Bgn_DT pCW_End_DT
Showing results 1 to 25 of 59

 
All times are GMT -4. The time now is 05:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy