Programming :: Script Running With Different Selections?

Mar 18, 2010

i have two scripts called: type & selecttype. In type i have only the name of the products ex.: product1 & product2. Now, i am going to ADD product3 which includes productA, productB, productC, productD, productE, productF. so my new type script (menu) looks as below:

1) product1
2) product2
3) product3

and my current selectype looks as below ( which is set only for product1 & product2)my question is how can include the new product3 with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype as below:

#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice

[code].........

View 5 Replies


ADVERTISEMENT

Programming :: Adding New Selections To The Existing Script?

Mar 19, 2010

i have two scripts called:

"type" & "selecttype".

In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as below:

1) product1
2) product2
3) product3

and my current selectype looks how can I add the new product3 argument with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype (as below which is set only for product1 & product2), so when a user select: 3) product3 from "type" would get a new menu of all the sub categories, and the script would process the new additional arguments.

Here is the copy of my selectype script:

#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then

[code]....

View 5 Replies View Related

Programming :: Zenity - Hiding Hidden Files From File Selections?

Sep 12, 2010

I'm using zenity 2.28.0 in a bash script (under kde4) to select multiple files in a directory. It works fine, but always defaults to showing hidden files. How can I get it to hide hidden files by default?

I know about toggling them on and off with Ctrl-H, but I would prefer not to have to use that. I have my options set so that dolphin and konqueror do not show hidden files by default. I even tried adding shopt -u dotglob to my script. zenity invocation (extracted from a more complex statement): zenity --title "Select Print Files to Delete" --file-selection --multiple

View 5 Replies View Related

Programming :: Suid Disabled From Running All Scripts Or Just From Running Them As Root ?

Sep 4, 2009

Is suid disabled from running all home made bash scripts or just from running them as root or:

Who would know for sure.

I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.

View 2 Replies View Related

Programming :: Cron And Fsarchiver Reportedly Running Not Actually Running?

Jun 1, 2010

My root Vixie cron crontab is set to perform a system snapshot via fsarchiver: 0 0 * * * fsarchiver savefs -o -A /backups/p30_root.fsa /dev/sda2 /dev/sda3 The command itself works fine, generating about a 7G snapshot of my Suse server. I then wish to rsync this to a NAS I have located in another building: 0 3 * * * rsync -av -e ssh --delete /backups/ root{at address}:/DataVolume/os_backups/

(yes, I'm rsyncing as root. I absolutely loathe it, but I got thrown into an quasi-SA position with a ridiculous to-do list and no time to do it. I'm having to make things just work and then go back and try to improve them/learn how. I couldn't make it work in a non-root way quick enough, so for now I'm having to cron rsync jobs as root because of all the differing file permissions on this samba/MySql server. I set the NAS to only accepts ssh from the server IP, and we're behind a campus firewall... It's serious trial by fire.) The crontab also has rsync commands for the samba areas, our specialized chemistry software and affiliated MySQL databases............

View 2 Replies View Related

Debian Installation :: 4.0 Freezes After Environment Selections?

Jan 19, 2010

I've tried this with 4.0r3 and 4.0r7 CDs, using two different networks to access repositories, and the same result each time: install goes fine until the "OK" for the "Desktop/Web Server/Mail Server/etc." selections, it brings up the "Select and install software" page and then it freezes, showing "5%" and "Please wait..." under the progress bar.

If I hadn't built 20+ servers this way I'd think it was me, but it's not... I think. What's going on?

(No, we're not upgrading to 5.0. Reference above mention of lots o' servers! )

View 3 Replies View Related

Ubuntu :: Quit And Show Selections In Menu?

Apr 24, 2010

The "Quit" and "Show" selections are way too close. Big breaking of Fitt's Law.

View 9 Replies View Related

Ubuntu :: Hold-ing A Package Using Dpkg --set-selections?

Oct 10, 2010

I'm trying to install wine1.3 but I don't want the (recommended) package ttf-mscorefonts-installer.In previous releases, I can run this to 'hold' the package and prevent it's installation:

Code:
echo ttf-mscorefonts-installer hold | sudo dpkg --set-selections.However, this command doesn't prevent ttf-mscorefonts-installer from being installed along with wine1.3 in maverick.[code]....

it's just that dpkg isn't picking it up.What is going on here, and how can I place a package on permanent hold?

Note: I ended up installing wine1.3 by running:

Code:
sudo aptitude install wine1.3 ttf-mscorefonts-installer= but I don't believe that the package is actually on permanent hold.

View 2 Replies View Related

Software :: Multiple Selections In A Text Editor?

Apr 5, 2010

how would i highlight multiple selections in a graphical text editor such as gedit, kwrite, kate, leafpad, etc. is it possible? for example; if i wanted to redact a document by removing several different words throughout the document.

i could probably learn vim or nano and regular expressions without too much trouble if those would work better.

View 2 Replies View Related

Ubuntu Installation :: Selection Won't Leave The GRUB Selections

Jan 14, 2010

Finally got a dual boot on this laptop the way I liked it (LOVE my Win7, really like UBUNTU for certain things like getting booted and on the net fast...great). As I was editing and rebooting the GRUB settings UBUNTU got it's updates and installed (including one on GRUB that I hadn't seen before - WITH WARNINGS). Now I can't seem to get this last entry out of the boot menu: vmlinuz-2.6.31-14-generic. It has all this listed now (had dual entries for everything like mem test before):

vmlinuz-2.6.31-17-generic
vmlinuz-2.6.31-14-generic
Windows 7

I got rid of the extra entries like memtest and all using: sudo chmod -x /etc/grub.d/20_memtest86+ and such variations..still though I got one stuck in the boot selections. It won't remove the old linux vmlinuz-2.6.31-14-generic build entry from GRUB (and they both point to the same place). It has a -14 and -17 entry in it now. Like I said both load to the same mount point.

I mean I removed like five extra entries from GRUB using that command after the update (and had done it before about two months ago) but the linux vmlinuz-2.6.31-14-generic selection won't leave the GRUB selections now. I really thought I had it figured out to the bomb having my laptop dual booting before, just didn't like how UBUNTU used my disk space by default last time so I decided to rebuild the laptop.

View 8 Replies View Related

Ubuntu :: No Bios Or Boot Selections After Windows Hibernate?

Apr 12, 2010

I had a dual boot umbutu 9.04 & xp Toshiba laptop satellite A15-S1292, (old bad battery). I use it mostly in linux but had been working in Windows, it may have hibernated and the next boot may have been to Linux. Now it boots straight into Ubuntu login screen that looks like it is may be returning from hibernate (don't use it normally). On boot don't see the normal BIOS announcement or screen allowing the selection of boot device. Doesn't boot Live CD from CD Rom or Suber Grub CD. When I examined the Windows mount receive warning that it could not be mounted as it was hibernated. I followed the suggested mount -t -ntfs -3g -o remove_hyberfile /dev/sda1 and can now access the windows partition. Boots still return to the same linux login screen. Don't seem to be able to boot from anything else.

View 1 Replies View Related

Ubuntu :: Remove A Package In The Selections Listing In Synaptic?

Nov 25, 2010

How would I remove a package in the selections listing in synaptic. Like remove it so no one will see it to install or remove it. Of make a custom filter be what it displayed by default in the selections list. Or set user privelages to not be able to install anything.? But still able to read and write to the hard drive.

View 2 Replies View Related

OpenSUSE :: No Selections Respond Only Kwin Responds To Terminate Application

Aug 3, 2010

I am running KDE 4.4.4 Stable from the openSuSE Repository for KDE 4.4.4 stable as included with 11.3.At first after initial installation Kontact worked and I could access Email, Address Book, Calendar, etc. from the icon bar. Now, Kontact starts, opens the Summary page, but no selections respond, only the Kwin responds to terminate the application, it just seems to hang and has to be killed to terminate. Anyone have similar issue or ideas on what may be causing it? I can start KMail, Kaddressbook, as separate applications and all respond as normal.

View 4 Replies View Related

Fedora Installation :: New Install Selections To Preserve User Data In Logical Volumes?

Apr 1, 2009

I have Fedora Core 8 installed. I would like to reinstall it so as to get back commands that have been lost. To preserve my user data that has been stored in logical volumes, what selections should I make in the installation process? Are these selections essentially the same for Fedora Core 10?

View 5 Replies View Related

Ubuntu :: Disable The Auto Tpye When Enter Something Into The Search Box It Lists A Bunch Of Selections?

Jun 16, 2011

I am looking for a way to disable the auto tpye when you enter something into the search box it lists a bunch of selections. How do i disable or turn it off

View 6 Replies View Related

Software :: OpenOffice Calc - Sticky Selections In "Paste Special"?

Jan 27, 2011

I just upgraded to OOo v3.3.0, but it feels more like a downgrade; a real disappointment. In my previous version, I could choose 'Tab' in the 'Paste special' dialog and the choice would stick between pastings as well as between sessions. No longer so. In v3.3.0 I have to tick 'Tab' and 'Detect special numbers' each and every time I paste something. I am working with OOo all day and this regression is tiresome, to say the least. So, I am wondering whether there is a way to make the choices sticky? If not, I shall have to go back to the previous version, or perhaps try out LibreOffice.

View 7 Replies View Related

Ubuntu :: Edit To Change Boot Order And Various Boot Selections?

Jan 6, 2010

I upgraded from XP to Windows 7 (I need this for legacy business) and decided to install Ubuntu permanently rather than using from CD. During an Ubuntu session I was prompted to upgrade, which I did, but when I boot up now, there seems to be 2 versions of Ubuntu which I can choose from the boot up menu, plus the usual mem test, safe mode etc, plus the option to boot Windows 7.

Firstly, is there in fact more than one Ubuntu image (and therefore precious disk space taken up), how do I find out, and if so what action should I take?If there is only one Ubuntu and one Windows 7 image, how do I edit (and where is the file) to change the boot order and the various boot selections?

View 9 Replies View Related

Programming :: Binary Not Running From Php?

May 4, 2011

I have written a c program. And compiled it to make a binary. Now when i try to call this binary from php page, it is not being executed.

View 14 Replies View Related

Programming :: Running A Script When A Folder Changes?

May 20, 2010

I have a script I would like to run every time a specific folder changes. I want this to be run the instant the folder is changed every time it is changed.e found some information about inotify and it sounds like it would probably do what I want,but am unsure if it can be made to watch only a single folder rather than the whole file system, and I'm unsure of how quickly it works

View 4 Replies View Related

Programming :: Running Mysqldumps In Parallel?

Oct 1, 2010

I have a bash script with a line like this in it:

Code: mysqldump -uusername -ppassword --master-data=2 --single-transaction --quick --add-drop-table --add-drop-database somedatabase | gzip > ./somedatabase.sql.gz The problem is, I have about 16 databases I'm dumping like this, but it's dumping

[Code]....

So, does putting in a & after a command work in a bash script at all? The thought was, if I want to run them in parallel, should I do this?

Code: #!/bin/bash
./scripts/dumpthis &
./scripts/dumpthat &
./scripts/dumpsomemore & Where "dumpthis" is just the first snippet of code above.

View 3 Replies View Related

Programming :: Terminate All Running Subshells?

Nov 21, 2010

I have a script that starts a subshell

Code: #!/bin/sh
local SSPID
clean_exit() {

[Code]....

done so the script waits in the loop for the subshell to finish then does processing and starts over. If I kill the script the subshell is not killed. So I can trap the TERM event and do some cleaning but I need to know the subshell process id.

I'm using busybox so ps does not accept any parameters I cannot source subshell so it can access its parent environment

View 2 Replies View Related

Programming :: C Code Not Running As Expected / Cause Of It?

Apr 27, 2010

I was wondering why this code only returns me the same value ten times instead of valuate the conta+0.1 value code...

View 6 Replies View Related

Programming :: C Language - For Loop That Just Keeps On Running?

Aug 1, 2010

In the code segment below is a for loop I am having some considerable difficulty with. It just keeps iterating endlessly and totally ignores the 70 times limit specified. I can't ever remember having this problem before and am absolutely Clueless.

Code:
for ( x = 0; x < 70; x++ )
{
fputs ("CSN00", target);
fprintf (target, "%d", userid);

[Code].....

View 14 Replies View Related

Programming :: Cron Job Not Running / Sort It?

Aug 25, 2010

I am executing the script.

with help of cron job but it is not executing in cron job.

i check owner and chmod and create the file and execute manually it is working fine but in cron job i set below

Crontab -e

8 14 * * * /home/tplinux/webapp/tpadminhost/collect_ejxml/ejrename.sh

wq!

after that wait till that time but script is giving message no such file in directory but same thing is excute manually it is running fine and found the files.
Below is my script details
file name ejrename.sh. code...

View 3 Replies View Related

Programming :: Getting A Snapshot Of A Running Program?

Nov 17, 2008

I am trying to use perl to run a program using the eval command but the program runs infinitely, i just need it to run basically for one second, stop then give me the output. I tried using fork but it does not really work. The child process is not being killed.

my $pid = fork;
if ($pid == 0) {
my $results = `ngrep etc...`;

[code]...

View 6 Replies View Related

Programming :: Make Own File As A Running Log?

Apr 1, 2011

I have written a small script from that iam appending the output to a file.If multiple users invoke the same script or if i invoke the same script n number of times (using &), the output file(ZZ/OUT) contains messup information.

++++++++++++++++++++++++++++++++
#!/bin/bash
#

[code]...

View 3 Replies View Related

Programming :: Php Not Running In Html Page?

May 22, 2010

I have an HTML page that I want to run some PHP code. I found several "How tos" about this but I can't get it to work. The code is very simple:

Code:

cat test.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

[code]...

View 14 Replies View Related

Programming :: Running Scripts Using The Java

Aug 17, 2010

i want to use java as tool in which i give an input,and on the basis of this input my specific script run. for example.... if we talk about web server.. in my java page..i have to just type my web page name...say [URL] and then enter the text...say "hi how are you"
then my script will run... in the script it itself start the service,then edit the configuration file in /etc/httpd/conf/httpd.conf
and make changes according to my input in java page... i know the scripting but i dont know how java command will execute my script...

View 4 Replies View Related

Programming :: Running C Graphics Program?

Sep 18, 2010

i want to run c graphics program on linux for that i want to install[URL]but i dont know how to install this graphic file on linux to make it un.

View 1 Replies View Related

Programming :: Sed Running Under Bash - Getting Error

Jul 18, 2010

~$ sed s/^bb/bbbbbb/ foo1.txt
~$ sed: -e expression #1, char 3: unterminated s command
~$
Where 'b' stands for space. What is the error here? Sed is running under bash.

View 6 Replies View Related







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