|
I've written (well, remixed to arrive at) this Bash script
# pkill.sh trap onexit 1 2 3 15 ERR function onexit() { local exit_status=${1:-$?} echo Problem killing $kill_this exit $exit_status } export kill_this=$1 for X in `ps acx | grep -i $1 | awk {...
Started by yar on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you only want to suppress the output from the kill command, only apply it to that line, e.g., kill $X > /dev/null 2>&1;
What this does is take... .
You can redirect stderr and stdout to /dev/null via something like pkill.sh > /dev/null 2>&1 .
|
|
Hi.
why wont this work? this is in a while loop:
$postdate = date( "j F", strtotime( $row['insert_date'] ) ); if ($postdate == date("j F")) {$postdate = "today"}; $table .= bla bla bla "$postdate";
it gives an error on the 'if statement line' in my browser...
Started by Camran on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this:
$table .= "bla bla bla $postdate";
The semicolon needs to be inside the braces, like this:
if (... .
$postdate;
Your third line is formatted wrong.
Your $table .= bla bla bla "$postdate"; line is wrong, it should read:
$table .= 'bla bla bla' .
|
|
How awful is that, after an hour of hunting and pecking, I figured I might as well contribute to the world the awful truth that the only reason your javascript failed to work in IE is because you thought you could pull a fast one on it and use your fancy...
Started by Peter Turner on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
script tags as:
<!-- script statements, which may include CDATA sections -->
<!ELEMENT script (#PCDATA)>
Hope it helps,
This is from : http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-....
|
Ask your Facebook Friends
|
Running Fedora 9/10, Apache 2, PHP 5...
Can I run a shell script as root, from a PHP script using exec()?
Do I just give Apache root priveleges, and then add "sudo" in front of them command?
Specifically, I'm trying to start and stop a background script...
Started by SkippyFire on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Even then, it poses a security risk, because anyone could create... .
Your shell script).
Why run the script as root anyways?
I'm not professional the apache user to that single command you wish to run (i.e.
That would be huge security risk.
|
|
Hello
I have just migrated to a UNIX workstation. My memory of Bash shell scripts has faded since school and I find the syntax to be highly confusing. I am wondering what other scripting languages are used to automate tasks. The two most popular ones ...
Started by Scott Davies on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at serverfault):
World shops ?
All of them, but I'd imagine that Perl has a little bit of an advantage here (being machines via script became reality after 1 hour of messing around with libvirt's python bindings.
|
|
What is your preferred scripting language in java world (scripting language on JVM) and way? When do you prefer your scripting language over java (in what situations for example for prototyping)? Do you use it for large projects or for personal projects...
Started by Darius Kucinskas on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Finally....
I also use it when I want to write a simple command-line script that takes, both from the JDK and 3rd party, is fully useable.
Just send them the script for no real benefit.
To the customers' needs without having to compile anything.
|
|
I have a Cygwin bash script that I need to watch and terminate under certain conditions - specifically, after a certain file has been created. I'm having difficulty figuring out how exactly to terminate the script with the same level of completeness that...
Started by Barry Kelly on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The script doesn't work unmodified under Cygwin, so I rewrote.
This script looks like it'll do the job:
#!/bin/bash # Author: Sunil Alankar ## # recursive kill, albeit not without some minor caveats.
|
|
Hi, I would like to ask the experts here on how to script the database objects in SQL Server 2008 Express Edition. When generating scripts, I found out that only tables and triggers are available to be script. But how can the SPs be scripted too?
The ...
Started by jerbersoft on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can check out aspnet_regsql.exe command, which allows you....
See this answer: http://stackoverflow.com/questions/175703/script-all-stored-procedures-in-management-studio-2005
I wanted my site's database to have objects of ASP.NET membership framework .
|
|
I want to call a series of .sql scripts to create the initial database structure
script1.sql script2.sql etc. is there any way of doing this without sqlcmd or stored procedures or any other kind of code that is not sql ? just inside a .sql file.
Started by keikkeik on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Do it in VB.NET as follows:
Sub ExecuteSqlScript(FilePath As String) Dim Script As String Dim FileNumber Delimiter = ";" FileNumber = FreeFile ....
Just create a little app that pulls in all the .sql files you want and executes them.
|
|
Hi there.
i have a small question..
i know i am noob.xD
but. the question is.... if you play in a dm/dd server.. you can see the map name on the botom on the left corner. right
but sometimes you can also see the next map..
what brings to my qeustion.....
Started by WDS-Markoes on
, 12 posts
by 6 people.
Answer Snippets (Read the full thread at multitheftauto):
But it doenst work ( vehicle , 0 , 0 , rz ) end -- Script ....
In both you have to use an example for me here.? ( off the script).
You must modify the race_client.lua or you can make a separated script.
|