10-23-2016
Its not an hw assignment, more of just preparing for a class next quarter. I been trying to get a head start on some the things that might be required.
I will post in the HW section next time. Sorry about that.
---------- Post updated at 11:59 AM ---------- Previous update was at 11:56 AM ----------
I have been looking at examples and researching online. I have some experience in Python.
Would I use the same functions in Linux/Ubuntu as I would in Python?
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write a history feature to a very simple UNIX shell that will list the last 10 commands used when control-c is pressed. A user can then run a previous command by typing r x, where x is the first letter of the command. I'm having quite a bit of trouble figuring out what I need to do, I... (2 Replies)
Discussion started by: -=Cn=-
2 Replies
2. Shell Programming and Scripting
Im trying to create a script to archive specified directories into a specified tarball backup file. This is what i want the input to look like
ex. save -i '/bin/b*' -i '/bin/ls' -o backup
this is what i have
#!/bin/bash
#save - backup file script
unset myInput
unset myOutput
while... (3 Replies)
Discussion started by: lensmen
3 Replies
3. Shell Programming and Scripting
Hi, I'm new to UNIX shell programming... can anyone help in doing the following :
1) create a text file named "Model File" having following columns :
Name Number Physics Chemistry
2) prompt user to n rows enter the name, number, physics ,chemistry
3) display the entire columns and rows... (1 Reply)
Discussion started by: Mayuri P R
1 Replies
4. Programming
hi guys i'm new to php,,i'm asked to develop a simple online help desk (where the admin can view the problem an forward it to another one to handle it and so on) or get a ready sytem then modify alil on it but i dont know where to start ir to find any suggestion please? (2 Replies)
Discussion started by: kedah160
2 Replies
5. UNIX for Dummies Questions & Answers
i am new to shell scripting!! i am making this program in bourne shell, that asks the user to input "Hello (their name)" or "question (their name)", any other input, "ERROR" will be outputted.
if they input "Hello (name)", i want to out saying Hello (name) but if they input "question (name)", i... (4 Replies)
Discussion started by: bshell_1214
4 Replies
6. Shell Programming and Scripting
please help me to execute a simple shell script like
for i in `ls
echo $i
done
. i dont want to create a new sh file to execute it. Can i just type and execute it ? because I always this kind of simple for loops .
Please help .
Thanks (7 Replies)
Discussion started by: Sooraj_Linux
7 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script that accepts two arguments. The two arguments are the
name of 2 files.
• If the arguments... (3 Replies)
Discussion started by: Scripter12345
3 Replies
8. Web Development
Creating a Simple Linux Dashboard with Oracle Jet - Part 1 the Server Side PHP Code
Creating a simple Linux dashboard with Oracle Jet is easy and fun. It's simple to create a dashboard to monitor your Linux server using Oracle JET. The sky is the limit with indicators and gauges.
... (7 Replies)
Discussion started by: Neo
7 Replies
LEARN ABOUT DEBIAN
test::database::handle
Test::Database::Handle(3pm) User Contributed Perl Documentation Test::Database::Handle(3pm)
NAME
Test::Database::Handle - A class for Test::Database handles
SYNOPSIS
use Test::Database;
my $handle = Test::Database->handle(@requests);
my $dbh = $handle->dbh();
DESCRIPTION
"Test::Database::Handle" is a very simple class for encapsulating the information about a test database handle.
"Test::Database::Handle" objects are used within a test script to obtain the necessary information about a test database handle. Handles
are obtained through the "Test::Database->handles()" or "Test::Database->handle()" methods.
METHODS
"Test::Database::Handle" provides the following methods:
new( %args )
Return a new "Test::Database::Handle" with the given parameters ("dsn", "username", "password").
The only mandatory argument is "dsn".
The following accessors are available.
dsn()
Return the Data Source Name.
username()
Return the connection username.
password()
Return the connection password.
connection_info()
Return the connection information triplet ("dsn", "username", "password").
dbh( [ $attr ] )
Return the DBI database handle obtained when connecting with the connection triplet returned by "connection_info()".
The optional parameter $attr is a reference to a hash of connection attributes, passed directly to DBI's "connect()" method.
name()
Return the database name attached to the handle.
dbd()
Return the DBI driver name, as computed from the "dsn".
driver()
Return the "Test::Database::Driver" object attached to the handle.
AUTHOR
Philippe Bruhat (BooK), "<book@cpan.org>"
COPYRIGHT
Copyright 2008-2010 Philippe Bruhat (BooK), all rights reserved.
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-11-27 Test::Database::Handle(3pm)