10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write simple script to delete archive logs for RMAN, unfortunately it's not working, I tried two way to do that:
echo "Start ....."
rman target=/ << EOF
delete force noprompt archivelog until time 'sysdate-10';
echo "END ..."
echo... (6 Replies)
Discussion started by: samer.odeh
2. Shell Programming and Scripting
I have coded a program in Haskell using the compiler Hugs and the program requires multiple commands (with parameters) to be entered into it, it then outputs the result of its execution. I need to test a lot of different options (i.e. the parameters) so it would be obvious to automate the... (0 Replies)
Discussion started by: tz742
3. Shell Programming and Scripting
I would like to execute a commands in four different servers through ssh at a single instance(simultaneously).
Below are the details with examples,
ssh user1@server1 "grep xxxx logs"
ssh user1@server2 "grep xxxx logs"
ssh user1@server3 "grep xxxx logs"
Each statement will take some... (4 Replies)
Discussion started by: Amutha
4. Shell Programming and Scripting
I have a program dnapars
I execute the program from command line as following:
The program then prompts me some message as a user menu from where I have to select a series of options in the order R U Y R. And then I copy the output file (outfile) in another result file.
I wrote the... (3 Replies)
Discussion started by: deeptisjains
5. Shell Programming and Scripting
How can I find the biggest file in a branch?
find / \*.\* | xargs du | sort -n 1,1 | head 1
but shell do nothings :(
---------- Post updated at 03:07 PM ---------- Previous update was at 02:41 PM ----------
find / -name \*.\* | xargs du | sort -nr | head -n 1 (0 Replies)
Discussion started by: Guccio
6. Shell Programming and Scripting
When my script deals with large input files like 22Gb or 18 GB the basic commands like sort or join fails when run from inside the shell scripts. Can there be any specific reason for this?
sort -u -t "," -k1,1 a.csv > a.csv.uniq"
sort -u -t "," -k1,1 b.csv > b.csv.uniq"
The... (3 Replies)
Discussion started by: esha
7. Shell Programming and Scripting
I'm new in shell scripting and i need your help, i would like to know how can i create a script to ftp to a certain unix/linux machine/server IP address and get a file for example without user intervention? How can i force the script to use a certain username and password to access this... (4 Replies)
Discussion started by: Dendany83
Is it ok to use exit() inside a signal handler?
I catch SIGUSR1 in a signal handler and I try to close a file and then exit. The result is inconsistent. Sometimes the process exit and sometimes it returns to the original state before the signal handler was invoked.
Perhaps exit is not legal in... (8 Replies)
Discussion started by: Tuvia
9. Shell Programming and Scripting
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
I want to include some shell commands in my c program in linux.
thanks in advance
esham (5 Replies)
Discussion started by: esham