Need a ksh scripting tool


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need a ksh scripting tool
# 8  
Old 01-29-2011
Install Ubuntu or SuSe and use it.....

Really I have used cygwin X and it works for most things. But If I really want to know I use a UNIX system.

Chubler_XL hmm my cygwin install does clear ok. did you try tput clear. Maybe just missing the alias for it.
# 9  
Old 01-30-2011
bash or ksh is not solution for your all problems. You need install more softwares from cygwin setup. Bash and ksh include only builtin commands, not externals.
You can do search in your cygwin setup. Ex. clear is part of default. (/bin/clear.exe).
tput is good command to use if you need lot of terminal servives like clear, bold, move cursor, ...
tput need terminfo.
Code:
tput clear   # works fine in every environment
# better way
clear=$(tput clear)  # run once, save output string and use it
#and then use 
echo $clear

Of cource it's always possible install some virtual machine environment to your Win system and then install some Linux. But if you need only "*nix command environment", then cygwin is okay solution.

Last edited by kshji; 01-30-2011 at 06:21 AM..
# 10  
Old 01-30-2011
Quote:
Originally Posted by atul9806
hi Chubler_XL
as i used CYGWIN, it is not supporting the 'clear' command....
so i searched, nd wnt for "http://rubenlaguna.com/wp/2007/09/26/bash-clear-command-not-found/ " this solution but not worked.. tell me how do i fix this ??

Clear is part of ncurses package, here is the first result of a quick "cygwin clear command" google that shows how to get it installed.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

KSH scripting

Hi Guys, I am trying to learn to script. first I have 2 server, A and B. A with IP 192.168.82.22. B with IP 192.168.82.44. Both with login user admin and password admin. server A will generate a file every day with name gg.log under /app/gg/20171002.log. I wish to write a script to copy the... (7 Replies)
Discussion started by: leecopper
7 Replies

2. Shell Programming and Scripting

Need help in scripting to do repair in format tool of Solaris

Hi, I posted my problem in Solaris forum, but I think, I am expecting a script, which should solve my purpose. I am not a scripting person, so need help here. I am on Solaris 10, in failsafe mode. Manually I run format command and it takes me to options, I pick "repair" and enter, it waits... (24 Replies)
Discussion started by: solaris_1977
24 Replies

3. Shell Programming and Scripting

ksh scripting

Hi All, Can you please let me know what I missed in the below function? Whenever I try to execute the script i am getting syntax error at line 101 : `fi' unexpected Function is function DELNWE5O { export ORACLE_HOME=/ora00/app/oracle/product/11.2.0/grid_1 export... (9 Replies)
Discussion started by: pvmanikandan
9 Replies

4. Shell Programming and Scripting

Help with ksh scripting in AIX

I am looking for a script which does the following Script will run daily. 1.It will get snapshot off all filesystems including nfs mounts, automounts and clearcase mounts. 2.Then it will compare new snapshot with the snapshot created in the previous run. 3.If filesystem exists in... (20 Replies)
Discussion started by: saidiya
20 Replies

5. Shell Programming and Scripting

New tool for shell scripting

Hi All, It's quite long time....m comming to my favourite forum.. Can anyone suggest me good tool like eclipse for Java....do we have anything for Shell scripting..where n i can atlease prepare script...rather than typing all mistakes in Linux box :) Thanks Sha (1 Reply)
Discussion started by: Shahul
1 Replies

6. Shell Programming and Scripting

ksh scripting help needed.

I am trying to create a script to manipulate numerous file and at first I thought it would be a simple task but at this point i am ready to break my computer! I am new to unix scripting so hopefully someone out there thinks this is super easy and can help me out! A sample of the problem file is... (2 Replies)
Discussion started by: theqcup
2 Replies

7. Shell Programming and Scripting

ksh scripting help

I have the file as below server1 no dr aix 5300-05-03 9119-595 20-18888 yes ftp-eagle server2 no dr aix 5300-05-03 9119-595 20-18888 yes ftp-eagle server3 yes dr aix 5300-05-03 9119-595 20-18888 yes ftp-eagle server4 ... (1 Reply)
Discussion started by: praveenbvarrier
1 Replies

8. Shell Programming and Scripting

Need help with KSH scripting

Hi I need to insert a page break into a file based on matching a phrase in the file. :confused: I am doing this with a ksh script on a Unix box. Any help would be greatly appreciated. Thanks (5 Replies)
Discussion started by: scrappycc
5 Replies

9. Shell Programming and Scripting

scripting problem ( KSh )

Hi all, I want to find out last word in each line ... suppose my file contains following lines ... this is unix forum here we share knowledge it is very interactive Now i need the output as :- ( the last word od each line ) forum knowledge interactive ... (2 Replies)
Discussion started by: dhananjayk
2 Replies

10. Shell Programming and Scripting

KSH Scripting

Will a shell script written in shell for HP/UX run on Solaris? (1 Reply)
Discussion started by: dstaller
1 Replies
Login or Register to Ask a Question