10 More Discussions You Might Find Interesting
1. What is on Your Mind?
Im back! I hadnt thought about yall in a long time. I was googling away this morning and found a solution I needed from unix.com.
good to see yall are still here and going strong!
Im working as a Bladelogic Automation Engineer and have been doing HP and BMC server automation... (0 Replies)
Discussion started by: Kelam_Magnus
2. UNIX for Dummies Questions & Answers
My problem in brief is that I execute a script from another script and I can not pick up the return code from that script, or otherwise I am not returning from that script. I have an echo in the executed script and we get a response code of 0 and exit that script with the return code. I then try to... (1 Reply)
Discussion started by: Charles Swart
3. Shell Programming and Scripting
hello i write a script which calculate free space but he always is 0 thats wrong with my script?
if ; then
if grep -q "Ubuntu" /etc/issue ; then
CMD="df -lP | grep -v "\/home" | grep -v "\/dev/mapper/VolGroup-lv_root""
elif grep... (5 Replies)
Discussion started by: donatas1234
4. Shell Programming and Scripting
I need your help once more.
I want to write a simple select as follows
select amount from books
However, if value of "Amount" is negative then it should print it as follows.
"3000-" and not as "-3000"
Can you help me in this?
Waiting for reply
Anu. (2 Replies)
Discussion started by: anushree.a
If i have the pointer to the pipe, which is given to pclose, what exactly does pclose do with it? (10 Replies)
Discussion started by: omega666
6. UNIX for Advanced & Expert Users
I am trying to use popen function with wrtie option to give inputs to ftp command.
int main(int argv ,char *argc)
fp = popen("ftp","w");
while(getline(&buf,&size,stdin) != -1)
write(fp,buf);... (0 Replies)
Discussion started by: kumaran_5555
7. Red Hat
Need some help, bit of a noobie here.
This command work perfectly with unix. returns a value of 1 which is what i want.
ps -eo user,comm |grep -v grep |grep -c /path to file
When i run the same command on a linux server it returns a value of 0.,
something maybe wrong with the command.... (4 Replies)
Discussion started by: wneutt
8. Shell Programming and Scripting
In my script, I can call on several functions. I have a logging function that is called by any of these functions. What I would like is some way of identifying which function I am using and pass this to the log function as some parameter.
Is there some built in command or way of... (3 Replies)
Discussion started by: kingpin2502
9. UNIX for Dummies Questions & Answers
I have a mainframe file which i am ftping to unix box.
even though i have three records in my mainframe file the file on unix is coming as a single record.
Can you help me out.
Hari (3 Replies)
Discussion started by: harikiranr
10. Shell Programming and Scripting
I need to return one value from sqlplus to UNIX environment. Can anyone give me an example?
i.e. select username from v$session where sid=15;
This query will return username value which I require in UNIX after exiting from sqlplus.
Malay (1 Reply)
Discussion started by: malaymaru