Fedora :: Create A Form In Bash That Would Display Multiple Radio Lists?

Feb 4, 2010

I am attempting to create a form in bash that would display multiple radio lists with an OK and cancel button on the bottom. I tried using the command line tool dialog, which is really nice. But it won't let me do multiple radio lists on the same form.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Create Text File Which Lists Sales - Bash Script Shows Total Sales Of Each Month?

Mar 8, 2011

Firstly i'd like to introduce myself before I ask my question, i am currently studying a "Network Operating System 2" course, and in the syllabus the professor decided to use Ubuntu Linux for us. This is a first for me and I am truly greatly interested in the OS. It seems like a solid system once you get to know the deep foundations of it. The professor has already given us an assignment, but I feel its not fair as its just a bit too much from out of what he taught us .. He did not teach us what he is asking for. He asked us to create to a text file which lists the Sales from two Salespersons, and each one will have an amount for each month .. So 12 entries for each salesperson.

Using that text file, we should write a bash script which would read the values from the above text file, and produce a "Monthly Sales" text file, which shows the total sales of each month (combined from both the salespersons). I would like to ask for some guidance, some help on how to start. It's just that he didn't teach us any commands about this matter.

View 9 Replies View Related

Ubuntu :: Webpage Editor To Create Form And Form Fields?

Jun 10, 2010

I've already tried Seamonkey to create a web page but can find no way to create a web form in which I want to create form fields. Before moving to Ubuntu I used Microsoft FrontPage to create web pages with form fields. This was easy to do. what is available to do the same in Ubuntu?

View 2 Replies View Related

Programming :: BASH - Create User And Password On Multiple Machines

Aug 9, 2010

I'm trying to write a script that will prompt the user for a username/password, then create that user/password in the right groups on all my machines. I know this is kind of a long way around to avoid a NIS server, but I like making my life more difficult.

This is what I have so far:

Code:

the script has 2 problems: The "if" functions return an error and do not compare the strings successfully. whatever password is entered does get applied properly and the user is unable to login

View 7 Replies View Related

General :: Create BASH Script To Process Multiple Inputs On Read

May 26, 2010

First post from a very new Linux user....I am trying to create a BASH script that will allow user to provide multiple directory names, Checks if the directory exists and if not create the directory.

I am using the following code:

Which works fine as long as the user enters a single directory name. How can I modify this so it will process all directory names user enters on the read response?

View 5 Replies View Related

General :: How To Update A Form Using Shell/bash Script

May 9, 2011

I am wondering is it possible to echo values like below described? The situation is - there are too many "doc" files named like "PLCI507_01234567.doc", and there is a Form in a text file named "form.txt" looks like below:

I am already able to create files in the same format for each documents but now I want all the information in a single form and the form should be updated with file informations ie. file name, created date, md5sum etc.

The updated form.txt should be like below.

View 2 Replies View Related

Programming :: Click 'submit' In A Remote Web Form From Bash?

May 26, 2011

I have created a simple web form which pokes a PHP script:

<form name="update" action="http://www.mysite.com/script.php" method="POST">
<input name="submit" type="submit" value="submit">
</form>

I can easily surf along to the URL [URL] and click the submit button which pokes script.php and everyone's happy. Automating this in iMacros or Selenium - no problem.

I want to automate this in a bash cron on the same server - preferably as a one-liner.

I *thought* something like this might work:

Code:
wget --spider --post-data="submit=submit" http://www.mysite.com/wget.html

or

Code:
curl -d "submit=submit" http://www.mysite.com/wget.html

and many variations thereof but no luck.

Is there ANY way I can click the submit button from a Bash command line? Curl, wget, lynx - one of these simply MUST be capable of this.

I do not want to run script.php from the command line - there are loads of relative links etc.

View 14 Replies View Related

Ubuntu :: Create Two Lists Of File Names Irrespective Of Directories And Compare?

Aug 13, 2010

I have an internal hard drive and an external hard drive, both with about 350 GB of data. The data came from the same source, but over the last couple of years, different people have moved files around to different directories, and some files have been deleted. Now I want to merge all the files onto the internal hard drive. I estimate that 80% of the files on the external hard drive are the same, so I don't want to copy 290+ GB of data over when I already have it.

Therefore, I need a way to find just the files on the external hard drive that don't already exist on the internal one. In other words, I need to create two lists of file names irrespective of directories and compare them, selecting only the file names that exist in one list OR the other. I've Googled for solutions but can't find anything suitable. There are ways to create text files of the file names and compare them with diff, but they have to be in the same order, and since these files are in vastly different directories, that won't work.

View 5 Replies View Related

Security :: Block Particular Web Site Form Multiple Hosted Server And Allow Others?

Aug 17, 2010

I am having a web server (apache) and 3 sites are hosted in it, named as www.web1.com,www.web2.com and www.web3.com.
I need to restrict www.web2.com to Internet users and allow only to local network. At same time I need to allow www.web1.com and www.web3.com to both Internet and LAN users.

View 2 Replies View Related

Ubuntu Multimedia :: Tunapie2 Won't Display Any Shoutcast Radio Channels

Dec 17, 2010

i am trying to list radio channels in Tunapie2 and it won't list anything. It will display TV stations, but not radio.

I removed the software and Re-installed it with the same problem. I even removed most files from my .tunapie folder under my home and just left prefs and favorites alone. I did this before re-installing the software.

Icecast works fine, but not Shoutcast Radio.

View 9 Replies View Related

General :: Setting Primary Display (nvidia) Form Command Line

Apr 15, 2010

Normally I use disper to enable my external monitor, but I don't think I can force the 2nd monitor to be primary. [URL]

I've played around with nv-control-dpy included in the nvidia-control source, but I haven't figured out how to do it yet. How to get: [URL]

This is a laptop, to which I connect an external hdmi display when I get to work. dipser -e extends the desktop for me, but the laptop remains the primary desktop (holding the panels etc). nvidia-settings can set primary monitor for me, but I want to use the cli.

View 4 Replies View Related

Programming :: Create Simple Form That Will Also Upload Only Xml Data?

Nov 24, 2010

i'm trying to create simple form that will also upload only xml data. first, the user will need to upload an xml document only by clicking submit, the data will be posted to the server and the user will be redirected to uploader.php. This PHP file is going
to process the form data and do all the work.

PHP Code:

[code]....

View 1 Replies View Related

Fedora :: Gnome3 Multiple Display After Fc15 Upgrade

May 27, 2011

Upgraded from FC14 X64 to FC15 X64 yesterday. I've used gnome2 forever, its worked very well for me.My workstation has 4 displays driven by two nvidia cards. One with dual dvi outputs, the other with one dvi one vga. I use the proprietary nvidia driver, NOT nouveau. Each card ties its displays together with twinview, and then xinerama spans across the who cards. This worked splendidly on gnome2, WITHOUT compiz. I used to use compiz when i had two displays so that I could have nice wobbly windows and transparencies, all very nice, but the extra area of the 4 displays was much more important to me. See, xinerama breaks compiz.

When i upgraded from FC14 to 15, my displays went amok, i ended up having to upgrade my nvidia driver, an then couldnt get things working in gnome 3. Finally i fell back to kde, kde4, and lxde both work just as gnome 2 did with my 4 displays. Gnome 3 with Gnome-shell fails spectacularly. Even if I fall back to two displays on one card, its wonky, things dont display properly, and the overview sometimes breaks such that it wont even come up anymore. Gnome3 without gnome-shell also does not work, in fact, i cant even get into gnome, it gives me some error and logs me out when all 4 monitors are enabled, and with only 2, it works, but.. well.. I want my 4 displays!I'm almost certain that compiz is to blame. Gnome's "Fail safe" uses compiz, and i'm betting the compiz isnt working on my 4 displays, causing said error and logout. I have no idea what the heck gnome-shell is doing. It actually displays on two monitors, while the other two are black. The mouse is able to display on all 4, i'm unable to interact with the displays which show gnome, but the displays which are black, seem to respond to my clicks, but they respond on the two montiros which display gnome. Very strange.

View 7 Replies View Related

Ubuntu Multimedia :: Multiple Machine Multiple Display Wall?

Aug 4, 2010

We are working on a project to create a display wall of 8 monitors arranged as 2 high by 4 wide. Each monitor is connected to a single machine and all machines are networked with a master machine with its own, seperate monitor.

Our goal is to get the 8 machines to share a single desktop, with the master machine acting as the server. We have looked at using Xinerama or NMM, but we are unsure about how to get started configuring the multi-machine, multi-head display.

View 2 Replies View Related

Red Hat / Fedora :: How To Create Multiple Users

Aug 27, 2010

how to create multiple users in linux

View 4 Replies View Related

Fedora Hardware :: Multiple Display Drivers For Virtual Machine?

Feb 25, 2010

I have a MacBookPro5,1 system that can boot into Fedora 12 x64 as well as Mac OS X. My installation of Fedora is set to use the nVidia graphics drivers to provide 3D acceleration when running the operating system natively. I have installed VMware Fusion on Mac OS X, and I can use it to boot my installation of Fedora into a virtual machine. However Fedora refuses to go into X Windows and just sits there with a blank screen. I can use Ctrl+F2 to switch to a command line and log into the system through the command line interface.

I'm not exactly sure why this is happening. However, I suspect that it is because when the system runs virtually, it does not make use of the nVidia graphics card. Instead VMware Fusion provides a virtual VMware SVGA 3D adapter. What would it take so that Fedora would use a driver that is compatible with this virtual display adapter when running in a virtual machine, and then use the nVidia driver when the system boots natively?

View 10 Replies View Related

Fedora :: Bash Script Symbolic Link Multiple Folders?

Dec 23, 2009

I've been using fedora for quite some time now but I've never really written any bash scripts so I'm new to this. Basically what I'm trying to do is create symbolic links of movies that I have organized in this fashion:

Code:
Movies/A
Movies/B
Movies/C
etc.

I basically want to create an "ALL" folder that has links to all the movies in their designated folders. I have created somewhat of a bash script but it does not work.

Code:
#!/bin/bash
cd '/media/Videos/Movies'
for file_name in `ls *`
do
ln -s "$file_name" All/$file_name
done

I don't think its creating the right link to the movies and it is not taking into account the fact that some of the movies have spaces in their names.

View 2 Replies View Related

Red Hat / Fedora :: Bash - Echo Multiple Numeric Values On One Line

Aug 9, 2009

I'm trying to get multiple numeric valued version information into a variable, all on the same line. I want for example $VERSION=3.1.0.01.002. I'm trying to pull seperate values from the file named version.properties, wherein the file contains;

patch.rel.num=0
sqa.num=01
major.rel.num=3
build.num=002
minor.rel.num=1

So I have the following script:
#!/bin/bash
BUILDVERFILE="version.properties"

PATCH=`grep "patch.rel.num" ${BUILDVERFILE} | awk {'print $1'}`
SQA=`grep "sqa.num" ${BUILDVERFILE} | awk {'print $1'}`
MAJOR=`grep "major.rel.num" ${BUILDVERFILE} | awk {'print $1'}`
BUILD=`grep "build.num" ${BUILDVERFILE} | awk {'print $1'}`
MINOR=`grep "minor.rel.num" ${BUILDVERFILE} | awk {'print $1'}`

P=`echo $PATCH | tr -d .=[:alpha:]`
S=`echo $SQA | tr -d .=[:alpha:]`
MA=`echo $MAJOR | tr -d .=[:alpha:]`
B=`echo $BUILD | tr -d .=[:alpha:]`
MI=`echo $MINOR | tr -d .=[:alpha:]`

VERSION=$MA.$MI.$P.$S.$B
echo $VERSION #

I end up with the value of .002 ?? Seems like it's only getting the last portion because if I run the script thru "bash -x" I get:
...
+ VERSION=$'3
.1
.0
.01
.002
'
+ echo $'3
.1
.0
.01
.002
'
.002

View 7 Replies View Related

Red Hat / Fedora :: Create Multiple User Account With UID?

Mar 15, 2011

Our requirement is to create multiple user account with UID:-

/tmp/users.txt
rohit
guna
samsir

like this 100 user names in /tmp/users.txt file

/tmp/uid.txt
2001
3789
1000134
like this 100 UID's in /tmp/UID.txt file

The script should take input from both the files and create user account. for example user account rohit should have an UID of 2001 and user samsir should have an UID of 1000134.

View 2 Replies View Related

Programming :: Run Multiple Bash And Php Scripts From A Bash Script?

Jul 25, 2011

I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.

Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?

View 5 Replies View Related

General :: Use 'iw' To Create Multiple Virtual Interfaces To Connect To Multiple Networks?

Oct 26, 2010

I'm trying to connect one computer to two others in an ad-hoc infrastructure.

[computer 1] ---- [computer 2] ---- [computer 3]

computer 2 is running Linux and has a single NIC wlan0. I want to it to connect to both computer 1 and computer 3 so each computer can talk to the other. No switch is available so it needs to be an ad-hoc setup.

[Code]...

View 1 Replies View Related

Fedora Hardware :: Create Multiple Partitions To Install Several Other OS's On?

May 31, 2010

Say I have this computer and this computer has a 1TB hard disk. I install Fedora 13 on this disk and let the installer do as it wishes with this 1TB of space. I'm going to end up with the LVM thingy. (Can you tell yet that I know nothing about LVM?). Can I, at a later date, use some of the available space to create another partition to install another OS on. Can I create multiple partitions to install several other OS's on?

View 7 Replies View Related

Fedora X86/64bit :: Can't Able To Create More Than 28 Spawn Bash In Core 64 Bit?

Jun 1, 2010

I can't able to create more than 28 spawn bash in fedora core 7 (2.6.25.4 kernel) linux 64 bit machine. I can able to create 1015 spawn bash in 32 bit fedora 7 core. Script I have used for both 32 bit and 64 bit:

[Code]...

View 1 Replies View Related

Fedora :: Write A Bash Script That Will Create A New Text File?

Oct 22, 2009

trying to learn how to write a bash script that will create a new text file named jimbola in my home directory. The file will need to be able to have the first and last name of Jim Bola included in it.

View 4 Replies View Related

Fedora Networking :: Tool To Create Multiple Listening Servers On TCP And UDP Ports

Jan 17, 2011

Looking for a test tool where I can fire up any number of ports (TCP and / or UDP) to listen on.

I am currently getting my using nc but its only 1 port at a time (i know I can open up multiple sessions but thats cumbersome), it can't do UDP, and it closes at the end of the session.

A friend has suggested socat but it looks pretty much the same except it can do UDP, but also cumbersome, I have to manually output to a different file per port, etc.

Basically its so I can quickly test firewall and NAT rules.

View 7 Replies View Related

Ubuntu :: Create A Bash Script To Create Make A Ftp Mirror Copy Of It

Aug 4, 2011

I recently bought an host to have a personal website and would like to create a bash script to create make a mirror copy of it and then add it to crontab to run once a week. Essentially what I want to do is to get the website by using wget -m ftp://user***@ftp.host/mydir

Once this is done I'd like to have everything in an archive called mysite.date.tar.7z I've no experience at all of bash scripting but I guess this should be an easy task? How to make the user and password not visible ? Is there any other option better than wget? (maybe rsync it works better?)

View 2 Replies View Related

Ubuntu Multimedia :: Carmen By Livio Radio - Save Internet Radio To The Device Is Written In Java

Jun 30, 2011

I am wondering if any in the Ubuntu community owns a Carmen Car Radio player by Livio Radio. The program to save internet radio to the device is written in Java, however I am not able to run it either using WINE or using Open JDK.

The Carmen Player does work well with Banshee, it is the internet radio that is not working.

View 1 Replies View Related

Ubuntu Multimedia :: Gnome Radio - Doesn't Find Any Radio Channels And The Input Channel Is Completely Wrong

May 1, 2010

I have a new install of Karmic on my system with a flyvideo 3000 tv card installed. My problem is that it doesn't find any radio channels and the input channel is completely wrong. I don't have any sound on gnomeradio and can't find the config files to change the input channel. The only input option available to me is dig1 - can anyone point me in the right direction?

I have already read the Howto for this tv card and changed the device to radio0 in the setup. I have setup tvtime perfectly with sound channel as well as with a 5.1 surround configuration. I am missing my favourite radio channel. and I want to get rid of my windows installations once and for all! Update: I did a system update and some things have changed: the radio tower graphic on gnomeradio is now green (I assume it is getting a signal) but no sound yet.

View 2 Replies View Related

Hardware :: No Form Feed After Printing Short Form?

Aug 13, 2010

We are using several printers on our Linux RH network to print customer invoices and receipts. Receipts are short forms of just 21 or 22 lines. Two of the printers (an HP LJ1300 and a Dell 5200) eject the receipt paper automatically; the other two HP (a LJ 4200 and a LJ2420) do not eject. You have to press the green button on the printer. Is there a solution to that? They are all set up with the same PCL settings.

View 3 Replies View Related

Fedora :: Create A Shell Script File With Two Functions - Bash Scripting & /etc/bashrc

Oct 6, 2010

how come I can create a shell script file with two functions, I can execute the file, but when running declare -f, the functions are not on memory, and when invoking the function bash returns invalid. In the other hand, I can copy & paste the two functions at the end of my /etc/bashrc file.... then I can called the function by name.... and the commands within that function run on my session. here is a print of all my bash packets:

[Code]....

Does Fedora has restrictions on shell scripting? I haven't touch bash in seven years, so if things have change on it I'm behind on it, and sorry for my ignorance.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved