10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need to create one very simple shell script that checks if the first character of the file ./pump.txt is 0 and in that case gives a message.
If the first character is instead 1, it does give a different message.
I have written:
irr= head -c 1 ./pump.txt
if ]; then
echo... (4 Replies)
Discussion started by: dcaccount
4 Replies
2. Programming
Hello,
I am new on PHP scripting .I have shell scripts which I an running currently from linux server but now I want to make a web portal from where I will run all my scripts but the problem is all my scripts ask for parameters so I am getting confused how could I run my shell script from web... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
3. Shell Programming and Scripting
Write a shell that receives as parameters two folder names. Copies the
second folder as subfolder into the first one. Only folders and files
with the '.txt' extension will be copied. Detect and avoid recursive copy.
This is what I have to do and I don't know where to start. In fact, I started... (5 Replies)
Discussion started by: sharpsh07er
5 Replies
4. Shell Programming and Scripting
Hello Friends,
I am writing a shell script which will grab a file if it exists and copies it to another folder and will append with current date. I have written but gives me error, plz help:
--------------------------------------------
#!/usr/bin/sh
source=/home/dev4rice/naveen/test1... (4 Replies)
Discussion started by: ganesh123
4 Replies
5. Shell Programming and Scripting
Hi,
I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram
I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Discussion started by: cmitulescu
4 Replies
6. UNIX for Dummies Questions & Answers
Is HP UNIX and Korn different flavours of unix?
can a korn shell script be written on HP Unix? (4 Replies)
Discussion started by: soujanya_srk
4 Replies
7. Shell Programming and Scripting
Hi All
I have requirement to write a shell script which would look for the userid which is logged in , and once the User id is found i would delete certain
lines from a parameter file ..
here is what iam using
a=ps -o user | grep -v user | uniq
then using an if condition and... (4 Replies)
Discussion started by: raghav1982
4 Replies
8. Shell Programming and Scripting
I've just written a test harness using ksh.
One of scripts weighed in at 1206 lines.
I came across Eric Raymonds 'Art of Unix programming' on line and he advises against excessively large scripts.
I am very interested to hear people's opinions on this and any experiences they have had. (2 Replies)
Discussion started by: OFFSIHR
2 Replies
9. Shell Programming and Scripting
Hi,
I am new to unix as well as shell programming.
Any body can provide me a simple shell script which should copy/transfer/fetch a file(using FTP)from remote server to local system.and it should log the details when it was fetched.If there is any error,the error msg should log in log... (1 Reply)
Discussion started by: Mar1006
1 Replies
10. UNIX for Dummies Questions & Answers
There are 2 shell script files sh1 and sh2.
sh2 contains records such as 01 02 03 on different lines.
In sh1, I would like to read each record of sh2 till end of file, concatenate them with a comma(,) and store in a variable.
Can somebody please help me with the sh1 script?
Thanks in... (2 Replies)
Discussion started by: shsandeep
2 Replies