|
How do I let user Y write in folder A only when executing script X ?
Started by khelll on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Then when X is invoked it runs as UA wrapper that just executes some separate ....
How about having script x write to /usr/bin, but as user z which is a user account, and belonging to a user UA that has write privileges to folder A.
|
|
Hi I am using 64bit Fedora 10 linux. I have created a sample java application. Now I want to write init script for that application. so that my application should start on bootup.
How to write init script to start on bootup.
Thanks Sunil Kumar Sahoo
Started by Sunil Kumar Sahoo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Many the following init.d script :
#!/bin/bash # # tomcat # # chkconfig: # description: Start up the Tomcat to the /etc/rc.local....
Some of the other answers here will get you started .
Program at will, you'll need to write a script.
|
|
How can I write a linux bash script, that tells me which computers are ON in my LAN ?
It would help if I could give it as input a range of IP's.
Started by Dumb Questioner on
, 12 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're limiting yourself to only having the last octet changing, this script should do limits the number of pings since the script will end, we can also limit ourself on unique IPs
ping -c 5 finished: 11 IP addresses (2 hosts up) scanned....
|
Ask your Facebook Friends
|
How do I write a Perl Script to read a CSV file first column and Update Oracle table?
cheers
Started by Neel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You may want to read about open , readline and split , if you want to write your own CSV parser.
|
|
Does anyone know how to write a bash script that will pull the time off of another server? I need a script that will poll the other server's time and start an event at a very specific period of time based on the time on the external server.
Started by Matt Pascoe on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You could write a scriptWhy not just sync the time using NTP then use Cron to fire off the script at the appropriate time or even more accurately, then you....
Well this will help you if you don't have strong time constraint .
As appropriate.
|
|
Hi,
I'm writing a script which is to be executed hourly. It basically works as:
Read the datafile if it exists. Perform an action if the datafile has certain contents. Write over or create the datafile. I will put the script in /etc/cron.hourly/ on Ubuntu...
Started by Kent on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I typically create a "data" directory somewhere in the tree where the process has write permissions.
Be placed in any area within the file system that the process can read from and write to.
|
|
I couldn't find the answer to this question in SO. I'll try to explain.
I'm writing some text in which I need to change scripts very often. Say I want to write some unicode character (not in the character script, but more in the transliteration of it,...
Started by Dervin Thunk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Although, XeLaTeX might be your best bet, since you are either going to have to use the CJK... .
Check out Xetex , "a typesetting system based on a merger of Donald Knuth's TeX system with Unicode and modern font technologies."
\usepackage{CJK} for Chinese .
|
|
A Perl script (which I do not control) appends lines to the end of a text file periodically.
I need my PHP script (which will run as a cron job) to read the lines from that file, process them, and then remove them from the file. But, it seems like the...
Started by Nick on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If the Perl script....
Possibility would be to instead of having the perl script write to a file, let it write to a named pipe and have your php script read out directly on the other end and let it write to a real file.
|
|
I want to write a simple batch script that loads the Visual Studio build environment using vcvars32.bat and then continue with the build, using vcbuild . However, my script won't execute past the invocation of vcvars32.bat . The last output I get is:
...
Started by Jared Oberhaus on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Therefore your script should be:
@echo off call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"....
You have to use call in your batch script, or the termination of vcvars32.bat will terminate your own batch script.
|
|
I'm writing a shell script that is supposed to be run by users only in sudo user list, what's the appropriate way of doing this?
what I'm thinking is in the shell script, try to create a dummy file in system dir such as /var/run/ and remove it, so users...
Answer Snippets (Read the full thread at serverfault):
This way you don't have to add a new ... .
Hi,
when you run the script .
It's much simpler to do, just put the below at the beginning of your script
if [ `id -u` -ne 0] then echo "Must be root" exit 1 fi
at the begining of the script.
|