hi i'am not really fluent in bash shell script, i'am doing some compilation using gcc that executed by bash script, how do I know (check) if the compilation was successful or not? any example?
When I use export command at command prompt, it works as expected. But it does not work from shell script.
[root@server shantanu]# export myip=10
[root@server shantanu]# echo $myip
10
[root@server shantanu]# vi myip.sh
#!/bin/sh
export myipadd=10
[root@server shantanu]# sh -xv myip.sh
#!/bin/sh
export myipadd=10
+ export myipadd=10
+ myipadd=10
…
Hi,
I want to write a google apps script in google docs spreadsheet,
such that it should update the svn revision of particular component automatically
(which is in one cell of that spreadsheet)
when i run that script
I need a vb script that will wrap around an applcation which will stay open until the application finishes.
I want to be able to call the following command
"setup.exe /qb /I Autocad2010.ini /language en-us"
But I need the vb script to stay running until the setup has finished.
Is there anyone out there that can assist with this.
Much…
I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would also be useful.
Is this possible using ssh (putty)? Or by any other means?
Thanks!
Can anyone help with a peice of batch script to restart an application service at scheduled time.
For example: If the service is "windows firewall " Then the script should restart this service every day at 09:00 AM and 09:00PM .
Can someone help with complete code.(Assume that there is no dependency of this service on any other…
I'm trying to create a scheduled task that runs a shell script recurrently, and I'm having some trouble getting it to work. I give it the following command to run every minute:
~/Desktop/foo/my_script
But it doesn't ever run. (This command runs the shell script through the terminal no problem.) Any ideas what I'm doing wrong?…
I have a simple .bat script to shutdown a kiosk style machine in our work
shutdown -h -f
this hibernates the machine and I have it running each evening as a scheduled job. However my problem comes when I turn the machine on again. The first time I press power it starts up and then immediately hibernates again, like it runs…
In my Solaris Illumos, I run a simple script:
update_drv -a -i '[myhardware]' [driver]
svcadm disable stmf
svccfg import /mypath/myconfig
svcadm enable stmf
It does not work and gives me no error. The service stmf goes in maintenance mode and I must reboot!
I've discovered that if I run the single commands from console,…
How can I automatically run a script when I log on to Windows?
I'd like to run this whenever I log into my computer:
echo %USERNAME% logged on at %DATE% %TIME% >> log.txt
A bonus would be to be able to run the same script whenever I unlock the screen saver as well.
I need to add startup and shutdown scripts from a CLI through a Powershell/Python/CMD script. Ideally, I would like to have the same functionality as gpedit.msc, but it is important that the tasks of adding and removing such scripts do not require user interaction and can be done entirely within the context of a script.
…
Hi
The main question:
Is there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?
What does the script do?
The script mounts a partition, looks for a file in that partition and finally on the basis of that file…
Hi,
I want to disable script errors from popping up in a VB6 application. (I have VB6 installed on this machine).
Currently, if I navigate to a particular page, it pops up saying "INternet Explorer Script Error: An error has ocurred in the script on this page" ... "Do you want to continue running scripts on this page?"…
Hi!!!
I have some problems with a PHP script that calls a Bash script.... in the PHP script is uploaded a XML file, then the PHP script calls a Bash script that cut the file in portions (for example, is uploaded a XML file of 30,000 lines, so the Bash script cut the file in portions of 10,000 lines, so it will be 3 files…
I wrote a quite big script for Photoshop CS5.1 on my 64bit Vista machine. Now when I run the very same script on my new 64bit Windows 7 machine, Adobe ExtendScript Tool complains about activeDocument (no such element) in this simple script:
#target photoshop
var pDoc = app.activeDocument;
alert("Done!");
I have tried…
As the title says, I'm trying to find how to run adb commands through a pre-written script (such as how .bat and .vbs files work) so I can make a semi automatic program to pull some files from my android phone whenever I click on the launch.bat which launches a line of program to go through the phone and find certain…
I have a cron job calling a bash script which runs fine, except for one line inside it that is suppose to remove all fines in a directory. The result of this line is always 'no such file or directory' even though I have verified (many times) that there are files in that directory. The line in question is as simply:
…
Hi I have VB script that run second VB script The second VB script ask some questions from the input box My problem is that “MyShell.Run” not wait until SecondVBscript.vbs will ended And the Other VB syntax run immodestly also
Need to wait for MyShell.Run process ended and then perform the Other VB syntax How can I…
Hullo,
I have a bash script that uses sudo a few times. There's a couple of strange points about it though.
It asks me for my password a few seconds after I've already entered it for a previous command.
The second time I enter my password, it's echoed to the display.
Here's the relevant bits of the script.
…
I want to change text file format as following , but don't know how to do
(2) 5. The function of the condenser is to:
a) vapourise the liquid refrigerant
b) change high pressure refrigerant vapour to liquid
c) pressurise low pressure refrigerant vapour
d) vent off vapourised refrigerant
e) lower the…
I've generated a shell script that uses ImageMagick to convert and crop around 18000 images. Here's a sample entry (so there are 18000 of these):
if [ ! -f ./cropped/16333-1.png ]
then
convert -crop 724x118+876+1989 ./lin/34.png ./cropped/16333-1.png
echo cropping 16333-1
fi
if [ ! -f…
I am running Vista Home Premium. I tried to write a script to do some simple automation.... it does not work!
even the most simple script like:
@echo ON
dir .
does not get executed and only an empty CMD shell pops open when started from explorer.
From the cmd windows there is no…
I am running Vista Home Premium. I tried to write a script to do some simple automation.... it does not work!
even the most simple script like:
@echo ON
dir .
does not get executed and only an empty CMD shell pops open when started from explorer.
From the cmd windows there is no…
I have very basic shell scripting knowledge.
I have photos under original folder on many different folder like this
folder
+ folder1
+ original
+ folder2
+ original
+ folder3
+ original
+ folder4
+ original
Using mogrify I'm trying to create thumbs under…