Gui to command line


 
Thread Tools Search this Thread
Operating Systems Solaris Gui to command line
# 1  
Old 06-30-2014
Gui to command line

Hi,
OS :- SUN

I am asked to invoke table menu via command line , after that i need to select option in the table menu like REPORT, STATUS ...

After login in to server , I am entering “yct”. It brings me a table with lot of option , I need to scroll down and then select “Report “ which display the report,
is it possible to convert this in to single command

Table menu would be like this
Code:
==================================================
YCT TABLE MENU 
====================================================
REPORT

DAILY STATUS

WEEKLY STATUS

DATE

HELP
=====================================================


Last edited by vbe; 06-30-2014 at 08:17 AM.. Reason: code tags
# 2  
Old 06-30-2014
Please post the script.
# 3  
Old 07-27-2014
If the position of "Report" is always the same, try something like:
Code:
echo "jjjjj^M" | yct

ie, pipe a bunch of down arrow keystrokes followed by an enter into the command.
# 4  
Old 07-29-2014
Searching for YCT, I get two hits on this forum, one on the Microsoft forum that you posted and directed you here:-Beyond that, I get:-
  • Yacht Charter Travel
  • Youth Cancer Trust
  • Young Conservatives of Texas
  • Yellowstone Cut-throat Trout (fish)
  • You Can't Type
  • etc.

It's not available on this site's manual pages as a Solaris command, so assuming that YCT is a home-grown or bespoke application/script, please post the script in CODE tags.

Maybe the letter j will work as suggested by Smiling Dragon, maybe not. What keys do you use to do this manually?

Will this be run from the command line or are you trying to schedule it?

I ask this because it may not like screen handling strings if there is no screen. I recall migrating a Cobol application with a manually driven schedule to another server and implementing a proper scheduler at the same time. Every time the Cobol code wanted to write to the screen with bold, underline, cursor placement etc. or ring the terminal bell, it would abort so we had to go through and remove all the screen controls from the batch code.


Regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

How to start gui from Solaris command line?

Hi. I'm a Solaris newbie. I'm using Solaris SunOS Version 11.4.0.15.0 through Oracle VM VirtualBox Manager on Windows. When I start the VM, I get to a command line I can login to. I've tried using: /usr/dt/bin/dtconfig -e However, I receive error "No such file or directory". The... (3 Replies)
Discussion started by: SRD
3 Replies

2. Solaris

Command to turn off or GUI

What command turns GUI off and on in Solaris 10 (4 Replies)
Discussion started by: zbest1966
4 Replies

3. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

4. Shell Programming and Scripting

sed command to replace a line at a specific line number with some other line

my requirement is, consider a file output cat output blah sdjfhjkd jsdfhjksdh sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf hellow there this doesnt look good et cetc etc etcetera i want to replace a line of line number 4 ("this doesnt look good") with some other line ... (3 Replies)
Discussion started by: vivek d r
3 Replies

5. Linux

Only the terminal(command screen) no GUI, for Windows XP ???

Hi All, Am working in a major IT company, due to security issues, being a fresher am not allowed to install or asking for a specific business reason to install it in my system. The thing is i want to learn Linux, due to the same security issues we need Admin pass to install certain... (6 Replies)
Discussion started by: mr_ganapathy
6 Replies

6. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

7. UNIX for Advanced & Expert Users

Possible GUI to Command-Line Interface Translator?

I was chatting with my teacher on how this could be a great tool for admins who are making the switch from GUI to CLI administration. I'm wondering, does this kind of tool exist? (4 Replies)
Discussion started by: Daemon-Killer
4 Replies

8. UNIX for Dummies Questions & Answers

If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip

Hello all, 1) I want to have a GUI application that will call Unix shell scripts, 2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix. That is for example. If a is windows gui (... (1 Reply)
Discussion started by: hchivukula
1 Replies
Login or Register to Ask a Question