10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to run sql query in shell script and output data save as delimited text (delimited text would be comma)
Code:
SPOOL_FILE=/pgedw/dan.txt
SQL=/pgedw/dan.sql
sqlplus -s username/password@myhost:port/servicename <<EOF
set head on
set COLSEP ,
set linesize 32767
SET TRIMSPOOL ON
SET... (8 Replies)
Discussion started by: Jaganjag
8 Replies
2. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
3. Shell Programming and Scripting
Hi,
I'm using UWIN (from at&t - a cygwin like environment) in my personal computer to show Unix like environment to someone new to Unix. Though UWin has Ksh command box, wanted to show Putty to that person.
My question is. How to connect to Cygwin (or UWin) installed in personal computer... (2 Replies)
Discussion started by: bobbygsk
2 Replies
4. Shell Programming and Scripting
Hi friends,
In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script.
the code segment is:
------------------------------------------------------------
cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
2 Replies
5. Shell Programming and Scripting
I frequently use some commands, which I want to save in some file say myregularshell.shthese are the commands I use, I tried saving and executing, but couldn't get the preview of execution, and result is also not coming if I copy same commands and paste it on terminal result is coming
cd go... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
6. Shell Programming and Scripting
Hello,
I am trying to write a shell script that maintains the health of the passwd file. The goal is to check for duplicate usernames, UID's etc. I am able to find and sort out the UID and login names via awk (which I would like to use), but I can't figure out how to save the record field into a... (1 Reply)
Discussion started by: Learn4Life
1 Replies
7. UNIX for Dummies Questions & Answers
Hi
I've installed uwin4.2 on 2 boxes a Win Xp and Window 2003 server.
I have a simple script that I invoke form the command prompt like so
ksh {c:\script} on the XP box it works. On the 2003 it just hangs ! Any ideas. here is the script
#!/usr/bin/ksh
echo hello
cat /etc/mailx.rc... (3 Replies)
Discussion started by: bombcan
3 Replies
8. Shell Programming and Scripting
Hello all:
I need found script to save and restore file permissions and owner:group... this is for backup my server...
I have one problem in my server and file permissions and owner:group, mess up..
For this reason i need found one way to secure this aspect of the server...
Thanks! (1 Reply)
Discussion started by: joangopan
1 Replies
9. UNIX for Dummies Questions & Answers
i have no clue what I am doing with the ed editor since i have never really used it.. the only thing is the sed edittor on the unix emulator I downloaded for windows is rather simple and the man pages are very vague... it doesn't function according to most linux operating systems that envoke sed..... (4 Replies)
Discussion started by: moxxx68
4 Replies
10. UNIX for Dummies Questions & Answers
so is UWIN like an emulator that sits on top of Windows or is like VMWare or Virtual PC where it is an X86 emulator inside of Windows? (1 Reply)
Discussion started by: wmosley2
1 Replies