General :: Calling A Shell Script To Make Few Builds

Jul 27, 2011

I am setting up a cron job, where i am calling a shell script to make few builds. I got struck at a point, need some expert inputs to proceed further. The script is categorized in 5 parts and in the last part while building software it asks for few questions like:-

1. Build mode choice
2. normal build
3. Copy Images
4. Arch

User manually has to input ans for these questions:-
1
yes
n
64

The ans's are fixed and this won't change. How shall i hard-code them or do something in the script so as when script flow reaches to this point it automatically take's these value. So far the cron job is not getting completed as it's waiting for user to key in these values manually. I had faced similar issue while building kernel modules but there it was easier as i had to take default values always:-

View 2 Replies


ADVERTISEMENT

General :: How To Exit Out Of The Calling Shell Script

Aug 18, 2009

I have 2 shell scripts, script1.sh and script2.sh. I call script2.sh from within script1.sh ( by simple ./script2.sh command). Based on some condition, i use exit 0 to exit out of script2.sh. I was trying to find if i can exit out of script1.sh as well at once. below is the example

script1.sh
#!/bin/bash
echo "Before ..."

[code]....

When i execute below is the output

Before ...
There was problem file is empty
The Script will Exit. Please fix the issue and run again...
After ...

I am trying to exit out of script1.sh as well so that i dont print "After ..."

View 3 Replies View Related

Software :: Pass To Shell Environment As Regular User / Will It Apply To Builds Ran Under Sudo?

Jan 17, 2011

If I pass to my shell environment as a regular user will it apply to builds ran under sudo?I posted a thread similar to this regarding a build with TOR; however, this is applicable to all programs.

View 6 Replies View Related

Programming :: Calling Vars In A For Loop In A Shell Script?

Oct 8, 2010

# variable declaration
stt=10
enn=20
stp=1

# I want to do it in the following structure but not sure how to call # the stt, enn and stp in a for loop

for (( i = $stt; i -le $enn; i=i + $stp ))
do
blah blah
done

View 9 Replies View Related

Software :: Calling DB User From Separate File In Shell Script?

May 23, 2011

I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want to call it in the test.sh in Path B.

Format of File A.txt
Username=test_db
Password=*****
Instance=ORACLEDB

View 3 Replies View Related

Software :: Bash Script Calling Make Files With CFLAGS Prepended?

Feb 6, 2010

Most all of this works when I execute it manually, but I cannot figure out how to get a bash script to execute it automatically.In this particular case, I am trying to build the xorg utilities. If I manually step through the process, prepending the commands with CFLAGS, LDFLAGS, etc, all of the packages build.So I created a bash script, test.sh:

Code:
#!/bin/bash
export INITFS=/initfs

[code]...

View 5 Replies View Related

General :: DD Imaging Of Builds Better Understanding

Nov 12, 2010

I am learning how to use DD for creating images across networks and locally but needed some clarification.
1 - When creating an image, I noticed that there is no verbose to show you the progress, How can I accomplish this?

2 - When I run this on a 8G usbstick it takes a long time to image. How can I speed up this process?
PHP Code:
dd if=/dev/sdb of=/home/test/images/image.dd

3 - When an image is restored like
PHP Code:
dd if=/home/test/images/image.dd of=/dev/sdb
will that give me a working bootable usbstick? For example if I imaged a working usbstick with Ubuntu on it using DD and restored it like the example above on a different usbstick, will this give me a booting new usbstick? I hope that came across ok?

View 1 Replies View Related

Software :: Calling A Bash Shell Script From Within Another Script?

Apr 9, 2010

I am trying to call a script say mkdir.sh into another script that will make use of the dir's which are created in the first script. I know that I could code it all together, but I am trying to avoid rewriting the mkdir script as it is long.

View 7 Replies View Related

General :: Make A Shell - Using Mail Command DestMail= Cat

Jul 22, 2011

I have a problem to make a shell, using mail command DestMail= cat /opt/scripts/maillist.txt mail -s"SUBJECT" $DestMail -- -r xxxxx@gmail.com < /opt/scripts/test.txt where: maillist.txt contain email adresse separated by comma test.txt mail text this script can eval DestMail variable!!

View 1 Replies View Related

General :: Building Application In Shell Using Make Command

May 26, 2011

Consider that I am building my application in Linux shell using make command but somehow the build fails. Is there any way I can find out that the build has failed (of course looking at shell for error messages will do the job for me but I don't want that). Is there any flag make or shell will set/reset if such failure occurs ?

View 5 Replies View Related

General :: Shell Script - Make Dirs Filename

Jun 27, 2010

Trying to write a shell script called make to read a file called dirs with the following in it
programs
scripts
documents
Read file line by line and make the directories in the current directory when you type ./make dirs if no file is given then program should print usage:
make dirs filename

View 3 Replies View Related

General :: Make My Computer Beep Using Terminal Shell Script?

Jul 31, 2010

I have a laptop running Ubuntu 10.04 and i want to make a shell script and I want a beep sound but I can't get one..

I tried this and i didn't hear any beep

View 4 Replies View Related

Programming :: Makefile - Error When Run The Make Run - No Rule To Make Target - Shell.h

Sep 15, 2010

I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)

My current Makefile

Quote:

#What needs to be built to make all files and dependencies

clean:

# End of Makefile

I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.

I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop

View 1 Replies View Related

General :: Make Shell Script Wait For A Particular Key Pressed In Order To Proceed?

Jan 30, 2010

i've been searching all over the internet for a way to let the user press a particular key let's say 'y' without the user having to press [Enter] as confirmationfor yes, this would then run another function.

Quote:

Book Inventory Summary Report:-

Title, Author, Price
______________________________
StarWars EP1, G.Lucas, $49.59
Harry Potter, Rowling, $45.98
The Matrix, Mr. Smith, $53.98

Press 'y' to make a copy of this result into a file or 'n' to return to the main menu.. I understand the "press any key to continue" would go something like

Code:

read -sn 1 -p "Press any key to continue.." But i try many different ways of getting the "press a particular key" function, and none of them works.

View 5 Replies View Related

Ubuntu :: Cannot Make And Make Install In Gnome Shell?

Jun 20, 2011

I just installed Gnome Shell in Ubuntu 11.04 through UGR Linux and everything works fine! The only problem is that I cannot run make and make install. I get the following errors:

Code:
alexandros@Autobot:~/gnome-shell/source/gnome-shell-extensions$ make && make install
Making all in extensions
make[1]: Entering directory `/home/alexandros/gnome-shell/source/gnome-shell-extensions/extensions'[code]........

View 3 Replies View Related

General :: Calling URL From Shells Script

Jun 13, 2011

I have to call URL from shell script. E.g.: www.google.com. How can I call URL from the shell script.

View 6 Replies View Related

General :: Arguments When Calling A Script ?

May 13, 2011

Suddenly, i have problems when i call a script when i use some arguments/variables

Here is my code:

Code:

This is my output:

Code:

View 3 Replies View Related

General :: Calling Application From Char Driver?

Oct 13, 2010

I want to call a application file in user space through a character driver running in kernel space.

View 1 Replies View Related

General :: Clean Makefiles After Calling ./configure

Aug 17, 2010

how can you remove all the makefiles and whatnot and basically restore the source package to its original form after you've called "./configure" or even "make" ?

for instance you changed the source code then you ran ./configure then make then make install ....etc you checked the software and it functioned as you expected it does , now you want to remove all the makefiles and all that other jizz that you don't need or want anymore in the source (obviously in order to package it for distribution)

what is the "standard" method for doing so?

View 5 Replies View Related

General :: Calling A Script And Giving It A Variable?

Apr 22, 2011

I have a script1.sh (see code below) which calls another script (which is a sort of template -> template.sh). But when i call template.sh i need to send an argument with it.

Code:

#!/bin/sh
VAR=`./template.sh -d $dirpath`
exitstatus=`echo $VAR`

[code]....

echo "$VAR files which are older than 1 hour in folder $dirpath" exit $exitstatus I geuss the command should look like something like this command

Code:

./script1.sh -d /

You don't have to look at the code of template.sh, thats not important. I just need to know how i get this to work I don't think it's that hard, but i just can't see it ...

View 2 Replies View Related

General :: Determine The Value Of The 'irq' Argument Before Calling Function?

Oct 27, 2010

I read somewhere that you should not be reading config space to determine the irq value to pass as the first argument to request_irq(). What is the proper way to determine the value of the 'irq' argument before calling this function? Hope this is the correct forum. I don't see one for drivers.

View 1 Replies View Related

General :: Error While Calling Capget Function (EINVAL)?

Apr 27, 2011

Error while calling capget function (EINVAL)

View 1 Replies View Related

General :: Calling All FreeNX - Cannot Connect The Macbook's NX Client To The Server

May 2, 2010

I am trying (desperately) to setup freeNX so that I can access my Mandriva box from my Macbook over my network. I have great need to be able to do this. Here's the necessary info for you: Mandriva PC: running Mandriva 2010.0 with freeNX installed from the Mandriva repos Macbook: running OS 10.4 with the Nomachine NX Client installed Now, I have followed the setup from the Mandriva wiki as well as the freenx wiki to no avail. I simply cannot connect the Macbook's NX client to the server. I get an authentication failed message. However, I can ssh from the Macbook to the server just fine (that's how I'm getting most of this work done).

[Code]...

View 3 Replies View Related

Fedora :: Latest MPLAYER Rpm Builds?

Mar 18, 2011

It seems like all mplayer rpm builds have stopped being updated. The latest in rpmfusion is about a year old. I've tried to find other places for newer rpm builds but there is nothing out there. I need a new mplayer, because the current one does not support subtitles in bluray movies, the SVN builds have had this feature for many months.

Anyone knows what is going on? Is there a particular reason why nobody updates rpm builds for mplayer for such a long time?

View 10 Replies View Related

Fedora :: Audacious 2.5.2 For F15 (Latest Builds)

Jun 30, 2011

Status update:
Latest builds including a few more fixes will hit updates-testing with the next push: [URL]
This time, karma automatism is enabled, so the update will hit the stable updates repo after either +3 votes or after 7 days. Regardless of whether the -freeworld packages are available. Those are being worked on as well, but since RPM Fusion doesn't build their packages against Test Updates, it seems they don't spend the extra effort on pulling the Test Updates into their buildroot and instead wait till those get marked stable.

View 14 Replies View Related

Slackware :: KDE 4.4.4 Builds Fine With 4.4.3 Slackbuild?

Jun 2, 2010

If 13.1 and KDE 4.4.3 aren't new enough for anyone, I've just successfully built and installed KDE 4.4.4 with the slackbuilds for 4.4.3. I had to edit the Slackbuild for kdenetwork by commenting out the line that patches the source. Other than that everything seems to be fine, although I don't know yet if this is a good thing or a bad thing since I've just got it installed.

View 14 Replies View Related

Ubuntu :: Opinion On Development Builds?

Nov 3, 2010

What is your opinion on *very* early development builds of Ubuntu? I decided to post this poll because I have *already* upgraded to the Ubuntu 11.04 "Natty Narwhal" Pre-Alpha.

Please explain your votes in detail. Edit: Sorry for not posting the poll; accidentally posted too fast.

View 2 Replies View Related

Programming :: Slow Shell Script / Make It Up?

Mar 1, 2010

I'm a truly ordinary shell scripter (and unfortunately I know nothing about any higher-level language), but I have an important script to run to count the number of files in our client directories.

Problem is that while we've not got a lot of clients (circa 100), they might have a LOT (> 1000s) of files.

And my script is REALLY slow code...

PS How slow? Well I started a cron job at 0005 yesterday, and as of 0930 today its only a little over half-way through all our clients.

View 9 Replies View Related

General :: Calling Gurus And Noobs - Review Filesystem Hierarchy Explanation?

Jun 10, 2010

Back when I was first learning Linux, one of the questions that I kept wondering about was "what are all these files and directories for?" I couldn't find a resource that would explain them in a digestible manner. Specifically, I was looking for one that would allow me to look at a Linux filesystem interactively, collapsing and expanding folders to look at just the ones I was interested in at the moment. So later, when I got the opportunity, I wrote it.

But despite a ton of research, I'm still not totally knowledgeable on the subject. The most important thing I'm looking for right now is for experienced Linux/Unix people to tell me where I got stuff wrong, and for newbies to tell me how useful it is to them and which things need clarification. I'm also interested in technical and graphical ways to improve usability, like better icons, layout, etc. I know I need to be able to collapse long descriptions, but what would you like to see? The Works Cited list and a full introduction are still on the way as of this writing.

Without further ado: Linux Filesystem Hierarchy Explanation. You'll need a fairly recent browser that can handle XSLT; the actual info is stored as XML, and transformed into HTML with an XSLT stylesheet. This is still a work in progress, and I'll be updating it as the thread progresses.

Finally, would people be interested in collaborating with me on this, as an open-source project? I've never done anything like that, and I'm not sure how much time I'll be able to give it in the future, but I really think this should be continued and expanded.

Edit: Works Cited and decent intro are now in place.

View 3 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related







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