We have many old snapshot views lying around and I need to find out when these snapshot views were created.
There is a twist - we are no longer running ClearCase and the hardware we used to run it is no longer around. However, we still have all the files used internally by ClearCase still lying around, so I can go to a directory /usr...
In some documentation, I have gotten the instructions to write
SERVER_PATH\theme\
When I check _SERVER["DOCUMENT_ROOT"] from php info, it's
/storage/content/75/113475/frilansbyran.se/public_html
this renders ofcourse
/storage/content/75/113475/frilansbyran.se/public_html\theme\
this looks really weird to me what's the difference anyw...
Possible Duplicate:
What should we do to prepare for 2038?
I don't mean 'people' in the abstract. I mean are you doing anything and if so what?
I am an ancient programmer and recall when I wrote COBOL in the late 70's saying to others in my team "you know - this isn't going to work in 2000". To which the reply was "yeah but t...
I have a question regading dup2. What does it exactly do? Copies the File Descriptor?
I don't quite understand the use of dup2. I tried google, and still don't quite understand what it means.
Thank you in advance.
...
I'm trying to understand the usage of pipe.
A parent process will pipe and if the parent forks, the child process will inherit the pipe. So now we hae a direct link to the child process and they can communicate?
I get lost when we start to close pipes and redirect pipes. Does anyone have a good explanation on closing pipes and redirec...
Hi, I am new to UNIX and can’t figure out how to access a certain number from a file. Following is the result I get when I type in quota -v.
I need to write a script to check and make sure if I am under quota, if not display a warning message. So, I am wanting to access “usage” number and “limit” number from that file and use a 'if' s...
first file of information page
name/joe/salary1 50 10 2
name/don/miles2
20 4 3
name/sam/lb3 0 200 50
can some one please tell me how can I remove all the words in the above file, so my output will looks as follows
50 10 2
20 4 3
0 200 50
...
I have file something like this
1111,K1
2222,L2
3333,LT50
4444,K2
1111,LT50
5555,IA
6666,NA
1111,NA
2222,LT10
Output that is need
1111,K1,LT50,NA
2222,L2,LT10
3333,LT50
4444,K2
5555,IA
6666,NA
1 st Column number may repeat anytime but output that i need is sort and uniq
...
Hello there!
I have build a little daemon in Java and I would like to run it as a service under Unix (e.g. Debian 5). I have read, that there is a possibility of using a Java wrapper - but isn't there any other option which is easier to implement? Can't I just use a Unix command such as "xxx java -jar program.jar"?
Thanks in advice, gu...
i'm not a java coder but need a commnad that will do
cut -d "/" -f1,2,3 MyFile
Any ideas?
...
Hello friendly computing people,
This is a two part question. I'm writing two shell scripts with the goal of doing a 'find and replace' in all the index.php files in a folder and its subfolders.
The first shell script is this:
echo "running on all directories…"
find . -name '*.php' -exec ./search_replace.sh {} \;
which then runs th...
I have some problem with replace command.
Input file i have this
{a[$1]=a[$1]FS$2}END{for(i in a) print i,a[i]}
I want to replace with single quotes
'{a[$1]=a[$1]FS$2}END{for(i in a) print i,a[i]}'
Using the below mentioned command
find input.txt -exec sed 's/{a[$1]=a[$1]FS$2}END{for(i in a) print i,a[i]}/'{a[$1]=a[$1]FS$2}END{f...
I would like to start a new project that consists of multiple tiers, the web tier, event-driven business logic, data processing, etc. I had worked on PHP and Java-based projects for the past few years and speaking from experience, Java (and given the open source libraries to achieve scheduling, ORM, AOP, etc.) is usually a good choice - ...
I have 3 jobs in my crontab. I want to recieve emails if only 1 of them fails and not for other two. Is there any way to restric emails to one type of cronjob?
...
Hi there,
is it possible to use a the find command in some way that it will not recourse into the sub directories?
e.g.
DirsRoot
|-->SubDir1
| |-OtherFile1
|-->SubDir2
| |-OtherFile2
|-File1
|-File2
And the result of something like find DirsRoot --donotrecuourse -type f will be only File1, File2 ? Anyone knows a way...
I'm trying to tell unix to print out the command line arguments passed to a Bourne Shell script, but it's not working. I get the value of x at the echo statement, and not the command line argument at the desired location.
This is what I want:
./run a b c d
a
b
c
d
this is what I get:
1
2
3
4
What's going on? I know that UNIX is con...
I am required to create 6 threads to perform a task (increment/decrement a number) concurrently until the integer becomes 0. I am supposed to be using only UNIX commands (Pipelines to be specific) and I can't get my head around how pipelines work, or how I can implement this program.
This integer can be stored in a text file.
I would r...
I have a tarball, and i want to remove all .tcl, .bat , .log files except pkgIndex.tcl in it.
if i do
tar --delete -f mytarball.tar --wildcards *{.tcl,.log,.bat}
my pkgIndex.tcl will be deleted, how to put that as exception in my pattern wildcard?
Just tried
tar --delete -f mytarball.tar --wildcards *{.tcl,.log} --exclude=*pkgIn...
Hi, when I use bash to run the following code, it will assign the value 5 in to the var1.
var1=$(awk '$1>$3{ print "5"}' newfile2)
echo $var1
But when I use this same code in banana or something, it gives me error. Can some one please tell me if there is some other way I can write this code, so I can run it using the C or Korn shell ...
In Unix, how would one do this?
#!/bin/sh
x=echo "Hello" | grep '^[A-Z]'
I want x to take the value "Hello", but this script does not seem to work. What would be the proper way of spelling something like the above out?
...