Sponsored Content
Full Discussion: Automate Script ***V. Urgent
Top Forums Shell Programming and Scripting Automate Script ***V. Urgent Post 302295205 by niceboykunal123 on Saturday 7th of March 2009 12:43:03 AM
Old 03-07-2009
Automate Script ***V. Urgent

Hi All,

./procdure.ksh which opens the below the menu, I want to build a script which will press 4 and run the Sector Data Automatically (instead of pressing option 4 manually)

Is there any way for this, please let me know...

1) FX Rates MDU 9) Fidessa Cash Equities
2) FX Rates DMDS 10) Fidessa Rest of World Orders
3) Market Data 11) Restricted List
4) Sector Data 12) Hong Kong GL Feed
5) Paris Cash Equities 13) Research Feed
6) Paris Derivatives 14) MDU FI Feed
7) London Derivatives 15) FI BBLink Trade
8) Fidessa Books 16) Return
Select one of the Above Procedure Groups: 4
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

here document to automate perl script that call script

I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript. here is my script $ cat test.sh #ksh for testcase do program <<-EOF | tee -a funcscnlog.log y... (3 Replies)
Discussion started by: hogger84
3 Replies

2. Shell Programming and Scripting

Script(s) to Automate Tasks

I know that this has a bad title, but I'm not sure how to sum it up well. (And I'm new to Linux in general, so please excuse any incorrect terminology :o) Anyway, I'm trying to create a script that gets whatever folder you're in, and then does a command with that directory as an argument. I... (2 Replies)
Discussion started by: droppedonjapan
2 Replies

3. UNIX for Advanced & Expert Users

Shell Script to Automate

I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote #!/bin/bash cd /var/tmp /home/server/steve/pca --askauth -idx /opt/app/bin/expect <<EOF expect... (1 Reply)
Discussion started by: sam786
1 Replies

4. Shell Programming and Scripting

Automate shell script

I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote #!/bin/bash cd /var/tmp /home/server/steve/pca --askauth -idx /opt/app/bin/expect <<EOF expect... (3 Replies)
Discussion started by: sam786
3 Replies

5. Shell Programming and Scripting

Looking for help with a script to automate VLC

Hi, New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate. I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies

6. Shell Programming and Scripting

How can I automate a script?

Hi All, Can I automate a script when some one trying to 'vi' (open) a file. For Example, I am having a file named 'SecuredShell.sh'. when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated. Can this be possible. if Yes please guide... (2 Replies)
Discussion started by: little_wonder
2 Replies

7. Shell Programming and Scripting

mail script to automate

Hi, Here below the logs from the mail server: less /var/log/messages: Sep 6 04:03:31 server-59 out: 1252227811|webmaster@zilia.com|antonino.granata@gmail.com|2175|success|1 Sep 6 04:03:33 server-59 in: 1252227813|news@tarot.com|junk@thess.com|30376|success|1 Sep 6 04:03:35 server-59... (8 Replies)
Discussion started by: gsiva
8 Replies

8. Shell Programming and Scripting

Automate remote script

Hi all, I need to execute a script on a remote machine that are connected to the network.The basic requirement is to write a script which will login in remote machine and then execute the other script automatically placed in remote machine.So that I need to execute the remote machine script... (3 Replies)
Discussion started by: smartgupta
3 Replies

9. Windows & DOS: Issues & Discussions

automate the script

Dear all, I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies

10. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
OpenGuides::Feed(3pm)					User Contributed Perl Documentation				     OpenGuides::Feed(3pm)

       set_feed_name_and_url_params Overrides the default feed name and default feed http equivalent url. Useful on custom feeds, where the
       defaults are incorrect.
	      $feed->set_feed_name_and_url("Search Results", "search=pub");
	      $feed->build_mini_feed_for_nodes("rss", @search_results);

       make_feed
	   Produce one of the standard feeds, in the requested format.

	   my $feed_contents = feeds->make_feed(
					   feed_type => 'rss',
					   feed_listing => 'recent_changes'
			       );

	   Passes additional arguments through to the underlying Wiki::Toolkit::Feed

       build_feed_for_nodes
	   For the given feed type, build a feed from the supplied list of nodes.  Will figure out the feed timestamp from the newest node, and
	   output a
	    last modified header based on this.

	   my @nodes = $wiki->fetch_me_nodes_I_like(); my $feed_contents = $feed->build_feed_for_nodes("rss", @nodes);

       build_mini_feed_for_nodes
	   For the given feed type, build a mini feed (name and distance) from the
	    supplied list of nodes.  Will figure out the feed timestamp from the newest node, and output a
	    last modified header based on this.

	   my @nodes = $wiki->search_near_here(); my $feed_contents = $feed->build_mini_feed_for_nodes("rss", @nodes);

       render_feed_for_nodes
	   Normally internal method to perform the appropriate building of a feed based on a list of nodes.

       default_content_type
	   For the given feed type, return the default content type for that feed.

	   my $content_type = $feed->default_content_type("rss");

       fetch_maker
	   For the given feed type, identify and return the maker routine for feeds of that type.

	   my $maker = $feed->fetch_maker("rss"); my $feed_contents = maker->node_all_versions(%options);

	   Will always return something of type Wiki::Toolkit::Feed::Listing

NAME
OpenGuides::Feed - generate data feeds for OpenGuides in various formats. DESCRIPTION
Produces RSS 1.0 and Atom 1.0 feeds for OpenGuides. Distributed and installed as part of the OpenGuides project, not intended for independent installation. This documentation is probably only useful to OpenGuides developers. SYNOPSIS
use Wiki::Toolkit; use OpenGuides::Config; use OpenGuides::Feed; my $wiki = Wiki::Toolkit->new( ... ); my $config = OpenGuides::Config->new( file => "wiki.conf" ); my $feed = OpenGuides::Feed->new( wiki => $wiki, config => $config, og_version => '1.0', ); # Ten most recent changes in RSS format. my %args = ( items => 10, feed_type => 'rss', also_return_timestamp => 1 ); my ($feed_output,$feed_timestamp) = $feed->make_feed( %args ); print "Content-Type: application/rdf+xml "; print "Last-Modified: " . $feed_timestamp . " "; print $feed_output; METHODS
new my $feed = OpenGuides::Feed->new( wiki => $wiki, config => $config, og_version => '1.0', ); "wiki" must be a Wiki::Toolkit object and "config" must be an OpenGuides::Config object. Both of these arguments are mandatory. "og_version" is an optional argument specifying the version of OpenGuides for inclusion in the feed. rss_maker Returns a raw Wiki::Toolkit::Feed::RSS object created with the values you invoked this module with. atom_maker Returns a raw Wiki::Toolkit::Feed::Atom object created with the values you invoked this module with. make_feed # Ten most recent changes in RSS format. my %args = ( items => 10, feed_type => 'rss', also_return_timestamp => 1 ); my ($feed_output,$feed_timestamp) = $rdf_writer->make_feed( %args ); print "Content-Type: application/rdf+xml "; print "Last-Modified: " . $feed_timestamp . " "; print $feed_output; print $rdf_writer->make_feed( %args ); # All the changes made by bob in the past week, ignoring minor edits, in Atom. $args{days} = 7; $args{ignore_minor_edits = 1; $args{filter_on_metadata} => { username => "bob" }; $args{also_return_timestamp} => 1; my ($feed_output,$feed_timestamp) = $rdf_writer->make_feed( %args ); print "Content-Type: application/atom+xml "; print "Last-Modified: " . $feed_timestamp . " "; print $feed_output; feed_timestamp Instead of calling this, you should instead pass in the 'also_return_timestamp' option. You will then get back the feed timestamp, along with the feed output. This method will be removed in future, and currently will only return meaningful values if your arguments relate to recent changes. print "Last-Modified: " . $feed->feed_timestamp( %args ) . " "; Returns the timestamp of something in POSIX::strftime style ("Tue, 29 Feb 2000 12:34:56 GMT"). Takes the same arguments as make_recentchanges_rss(). You will most likely need this to print a Last-Modified HTTP header so user-agents can determine whether they need to reload the feed or not. SEE ALSO
o Wiki::Toolkit, Wiki::Toolkit::Feed::RSS and Wiki::Toolkit::Feed::Atom o <http://openguides.org/> AUTHOR
The OpenGuides Project (openguides-dev@lists.openguides.org) COPYRIGHT
Copyright (C) 2003-2009 The OpenGuides Project. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. CREDITS
Written by Earle Martin, based on the original OpenGuides::RDF by Kake Pugh. perl v5.14.2 2013-01-11 OpenGuides::Feed(3pm)
All times are GMT -4. The time now is 11:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy