10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friend,
what is the equivalent command for batch scripting of tail -1.
for example : i have a.txt file with below the contents. i need to print last line
---------------------------------
Use descriptive thread titles when posting. For example, do not post questions with subjects like... (3 Replies)
Discussion started by: Jewel
3 Replies
2. Shell Programming and Scripting
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies
3. Shell Programming and Scripting
Hi All,
Actually we want to know the command need to use if the difference between two files are null, then it should not send as mail. Oterwise it should send as mail alert.
Below for your reference,
# Email the spoolfile.
diff free_sp_new.log free_sp_old.log
if output of above... (1 Reply)
Discussion started by: thanvir.akram
1 Replies
4. Shell Programming and Scripting
Hi All,
I have two scripts which i want to run in a single command line(or in a single script). And if both the scripts in the main script fail then i want to pass a value to a Application specific utility which will trigger some alert.The value can be anything. Somebody please help.It is... (1 Reply)
Discussion started by: shroh
1 Replies
5. Shell Programming and Scripting
I want to write 2 scripts that:
script named "users" - List of users logged into the system;
script named "ps" - List of all processes in the operating system;
# is it true?
#!bin/bash
echo 'content-type: text/html'
echo
users # for script named users
#!bin/bash
echo 'content-type:... (15 Replies)
Discussion started by: numeracy
15 Replies
6. Shell Programming and Scripting
Is there any command or VARIABLE in unix to display only bash builtin commands?. Some days back I worked on that, but now I do not remember.
Can anyone please reply for this?... (4 Replies)
Discussion started by: gwgreen1
4 Replies
7. Shell Programming and Scripting
I have written a few shellscripts to run a videogame (starcraft) at different patched versions. For example bw113 runs the 1.13 version of the game.
These works perfectly when I run them from command line (./bw113). However I cannot get it to work via mouseclick.
Some Information:
- I have... (5 Replies)
Discussion started by: lordsloth
5 Replies
8. Shell Programming and Scripting
HI,
I have 2 scripts main.sh and sub.sh, I want to invoke both these scripts in 1 unix command..
Something like... csh -f main.sh(sub.sh TIBCO)
sub.sh returns a value as .., by taking this value main.sh prints a text.
Can anyone help me to build this command
Below are the scripts
////sub.sh... (3 Replies)
Discussion started by: bce_groups
3 Replies
9. Shell Programming and Scripting
Hi,
Can you please let me know if there's any debug command for perl scripts
like
set -x for shell scripts (2 Replies)
Discussion started by: dayanandra
2 Replies
10. UNIX for Advanced & Expert Users
Hi evrybody!!!!
I have a problem with this shell script
INICIO=$(sqlplus -s user/user@db1 << END | awk '{printf $1}'
set head off
set feed off
select to_char(min(create_dt) , 'HH24') from table_name where trunc(create_dt)=trunc(sysdate-2);
END)
I want to recover, in INICIO, the min... (4 Replies)
Discussion started by: josecollantes
4 Replies