Sponsored Content
Top Forums Shell Programming and Scripting Script as login shell (passing args to login shell) Post 302895386 by maverick72 on Monday 31st of March 2014 02:59:16 PM
Old 03-31-2014
So how do you parse the data at the other end? The receiving part is my problem since i get 2 args (-c and a block of "-i 0.0.0.0 -n host1 ).

Should i drop the options since only the php code will trigger that script so no sense in keeping those?

Then i can put the block of args split it into an array and check check more check and then use the values?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

remote login via shell script

is it possible for me to have a shell script log me in to a telnet session? i have in mind something along the lines of % telnet host < script, where the first two lines of script will be username and pass followed by a list of commands to execute on the remote host. this doesn t work as... (4 Replies)
Discussion started by: lethe
4 Replies

2. Shell Programming and Scripting

remote-login via Shell-Script

Hello all, I would like to login from one unix-system with a (tcsh)-script to an other unix-system.The login-procedure and the transmission of username, resp. password runs via ssh. The problem is after logging onto the remote server once "Enter" has to be pressed, before one gets to the... (1 Reply)
Discussion started by: Juergen Paepke
1 Replies

3. HP-UX

cannot login after changing login shell

Hello Everyone, I am a newbie in unix. I was practicing shell scripts on hp unix machine. I changed my current login shell (Korn) to Bourne shell giving the following command. $ chsh username /usr/bash I am using secure shell client for accessing the hp ux server. After which i... (4 Replies)
Discussion started by: hardesh
4 Replies

4. Shell Programming and Scripting

login from a shell script?????

Any help on this ..... its a bit urgent !!!! Hi Can anybody provide info about the following??? i want to issue su (switch user) command from within a shell script how to take the password without user intervention from the shell script only???? i.e using apssword which is already... (2 Replies)
Discussion started by: skyineyes
2 Replies

5. Shell Programming and Scripting

Login with Shell Script.

Dear All, I need to create a shell script which will login to a unix system with user root. I also need to supply the password for root through script only instead of entering it manually. After i am logged in to the system i need to excute all the necessary commands. so far i have done... (7 Replies)
Discussion started by: Siddheshk
7 Replies

6. Shell Programming and Scripting

SSH - Passing Unix login passwords through shell scripts

Hi All , I need to call a script runscript_B.sh on server A, the runscript_B.sh script locating in server B. The runscript_B.sh in calls another script runscript_A on server A itself. it seend, i need to be connect from Server A to Server B using ssh. I have tryed like this in... (3 Replies)
Discussion started by: koti_rama
3 Replies

7. Shell Programming and Scripting

Help with Unix bash shell script login

Hi, I am a complete Unix novice and need some help with creating a login shell script. I have created a file with user details i.e. PIN, name etc and require help in recalling the specified details from the file and being prompted for a password on login. Any help would be very much appreciated.... (0 Replies)
Discussion started by: tdsrogers
0 Replies

8. Shell Programming and Scripting

passing login details to htaccess login prompt

Hi, How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php). Any help or hint appreciated. Thanks, SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies

9. Shell Programming and Scripting

How to login as a different user inside a shell script?

hi, i want to login as a different user inside a shell script and then call another shell script from that script. how to do that? original script : script_A.sh so when the script_A.sh is called , i want to login as a different user and then call another shell script(script_B.sh) from... (3 Replies)
Discussion started by: Little
3 Replies

10. Shell Programming and Scripting

Shell script for login user and email

Guys please help me I have a linux class and I want to write a shell script who shows which user loged in and show the process that are active in his/her shell in another text file and email that file to root just when the user loged out Thanks every bod (1 Reply)
Discussion started by: hamedk1122
1 Replies
Test::RDF::Trine::Store(3pm)				User Contributed Perl Documentation			      Test::RDF::Trine::Store(3pm)

NAME
Test::RDF::Trine::Store - A collection of functions to test RDF::Trine::Stores VERSION
This document describes RDF::Trine version 1.000 SYNOPSIS
For example, to test a Memory store, do something like: use Test::RDF::Trine::Store qw(all_store_tests number_of_tests); use Test::More tests => 1 + Test::RDF::Trine::Store::number_of_tests; use RDF::Trine qw(iri variable store literal); use RDF::Trine::Store; my $data = Test::RDF::Trine::Store::create_data; my $store = RDF::Trine::Store::Memory->temporary_store(); isa_ok( $store, 'RDF::Trine::Store::Memory' ); Test::RDF::Trine::Store::all_store_tests($store, $data); DESCRIPTION
This module packages a few functions that you can call to test a RDF::Trine::Store, also if it is outside of the main RDF-Trine distribution. There are different functions that will test different parts of the functionality, but you should run them all at some point, thus for the most part, you would just like to run the "all_store_tests" function for quad stores and "all_triple_store_tests" for triple stores (i.e. stores that doesn't support named graphs). All the below functions are exported. FUNCTIONS
"number_of_tests" Returns the number of tests run with "all_store_tests". "number_of_triple_tests" Returns the number of tests run with "all_triple_store_tests". "create_data" Returns a hashref with generated test data nodes to be used by other tests. "all_store_tests ($store, $data, $todo, $args)" Will run all available tests for the given store, given the data from "create_data". You may also set a third argument to some true value to mark all tests as TODO in case the store is in development. Finally, an $args hashref can be passed. Valid keys are "update_sleep" (see the function with the same name below) and "suppress_dupe_tests" if the store should skip duplicate detection, "quads_unsupported" if the store is a triple store. "all_triple_store_tests ($store, $data, $todo, $args)" Will run tests for the given triple store, i.e. a store that only accepts triples, given the data from "create_data". You may also set a third argument to some true value to mark all tests as TODO in case the store is in development. For $args, see above. "add_quads($store, $args, @quads)" Helper function to add an array of quads to the given store. "add_triples($store, $args, @triples)" Helper function to add an array of triples to the given store. "contexts_tests( $store, $args )" Testing contexts (aka. "graphs") "add_statement_tests_simple( $store, $args, $data->{ex} )" Tests to check add_statement. "bulk_add_statement_tests_simple( $store, $args, $data->{ex} )" Tests to check add_statement. "literals_tests_simple( $store, $args, $data->{ex})" Tests to check literals support. "blank_node_tests_quads( $store, $args, $data->{ex} )" Tests to check blank node support for quads. "blank_node_tests_triples( $store, $args, $data->{ex} )" Tests to check blank node support for triples. "count_statements_tests_simple( $store, $args, $data->{ex} )" Tests to check that counts are correct. "count_statements_tests_quads( $store, $args, $data->{ex} )" Count statement tests for quads. "count_statements_tests_triples( $store, $args, $data->{ex}, $data->{nil} )" More tests for counts, with triples. "get_statements_tests_triples( $store, $args, $data->{ex} )" Tests for getting statements using triples. "get_statements_tests_quads( $store, $args, $data->{ex}, $data->{nil} )" Tests for getting statements using quads. "get_pattern_tests( $store, $args, $data->{ex} )" Tests for getting statements using with get_pattern. "remove_statement_tests( $store, $args, $data->{ex}, @{$data->{names}} );" Tests for removing statements. "update_sleep ( \%args )" If $args{ update_sleep } is defined, sleeps for that many seconds. This function is called after update operations to aid in testing stores that perform updates asynchronously. BUGS
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. AUTHOR
Gregory Todd Williams <gwilliams@cpan.org> and Kjetil Kjernsmo <kjetilk@cpan.org> perl v5.14.2 2012-06-29 Test::RDF::Trine::Store(3pm)
All times are GMT -4. The time now is 10:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy