Hi
I run as admin on my machine and want to run an executable as non admin user from the command prompt (without logging off).
I'm running on windows 7 64 bit OS.
Is possible?
Thanks.
I have a PHP script which seems to have frozen MySQL. When I restarted my machine (Debian Linux) the MySQL database reported as full and now, when I want to run MySQL, there is the following error:
ERROR 2002 (HY000):
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
How do I fix this?
OSQL -S 127.0.0.1 -U sa -P password
RESTORE DATABASE DATA FROM DISK = C:\backup\data.dat
GO
EXIT
This is the batch file.
but after I run the OSQL -S 127.0.0.1 -U sa -P password,
the dos command start with the line
1>
After that, the batch cmd can't run. How can I fix this problem? thz.
I have setup a Fedora 13 minimum install inside of a VirtualBox VM, and am following this tutorial to setup Cobbler:
PXE virtual network with Virtualbox and Cobbler
When I go to run the initial cobbler sync the command seems hang. How long should it take to run this command? Since I did a minimum install of Fedora 13 am I missing a application that would prevent cobbler from executing the sync properly?
Does anyone know how to run applications hosted on a client VM from an icon created on the host computer. For example I want to run IE8 installed on the client VM on my host XP computer running IE6. I cant update to IE6 on the host because of compliance issues. I'm trying to do this with VMWare Workstation 7. I'll post the solution if I can figure this out before I get your assistance. Thanks!!!
I have two Ubuntu 12.04 servers, which run mysql in a master-master setup, with mmm as manager. How can I set up heartbeat to make sure that mmm only runs at one node at the time?
*Edit to explain more clearly
My setup:
---------VIP (10.0.0.123)------
| |
Node1 Node2
Where bot Node1 and Node2 run:
Mysql
Multi-Master Replication Manager for MySQL (mmm)
Heartbeat
I only want a single write enabled mysql node, and I can only have one mmm running at the time, else I'll get collision between the managers.
I have installed Tomcat6 using the 32-bit/64-bit Windows Service Installer download version. In the setup instructions, it is recommended that "For optimal security, the service should be run as a separate user, with reduced permissions". I created a new local/standard user (Tomcat) to run the service. The Tomcat service is listed in my list of Services and it's running under my user profile. However, I can't figure out how to set/change which user to start it as.
I have a Java program working with this syntax:
command.jar namefile
I have to run this program for 1600 files in a directory. How can I run this command for every file automatically?
Is there a DOS batch command? Or another way?
I have written a service designed to run under daemontools supervise.
Because the run script refreshes a source code repository:
git pull
pod_server # serve up docs on source code via the web
I desire for the script to restart every 5 minutes.
The manpage for svc says that it applies all options to the service, so I thought this would work in cron:
*/5 * * * * svc -du etc/pod_server
but it does not seem to be refreshing to source code repo with new pushes
I noticed that serveral daemon invoked python seperately.
For example, I have both wicd and ibus daemon running on my machine. Instead of launching a single instance of python, the daemons run with two python instance at the same time in htop:
/usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
python2 /usr/share/ibus/ui/gtk/main.py
Is it a waste of doing that?
If yes, how can I improve this?
If no, why avoid putting all daemons run on a single python instance?
Im running windows 7. And I want to run Iron browser from the taskbar and launch sandboxed.
What do I do? I already tried the right click method and then run sandboxed. And then pin it into taskbar. But when I closed it and launch again from the taskbar. The program is no longer inside the sandbox.
Starting around the time I installed the Office 2010 Beta, Whenever I login, Windows tries to open a file named "Bob", coincidentally the first part of my username. Selecting Notepad to open it, and it contains TCP/IP network settings.
I've looked for and deleted unrecognized entries in my StartUp folder, in HKLM/.../CurrentVersion/Run and in HKCU/.../CurrentVersion/Run with no luck.
Is there any other place I should be looking for errant entries?
Hi,
Is it possible for me to ssh to another server in linux (ubuntu), run a program there but display it locally?
And is it possible for me to ssh to another server in my terminal,
and configure it so that all graphical program (Firefox, emacs) run in that SSH session will be display locally?
Thank you.
I want to create a "mini virtual environment" to run a program. The only difference between my normal environment and the virtual one would be the drive mappings.
I have an X: drive mapped to \\some\network\location
I have a program myapp.exe that expects the X: drive to be mapped to C:\local\path
I need to keep my X: drive mapped to \\some\network\location throughout the process
I would like to be able to run the following batch file and not have it affect the current environment:
subst X: C:\local\path
myapp.exe
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? Thanks!
I've installed the following CRON job using 'crontab -e' through putty on my server, but it won't run and I have no idea why.
This is the line I'm putting in and saving using 'crontab -e':
00 09-18 * * 1-5 /usr/bin/php5 /home/a/v/ava/public_html/p/app_availability_updates_flush.php
It's a simple script I want to run on the hour during business hours.
When I use 'crontab -l' it prints the following:
00 09-18 * * 1-5 /usr/bin/php5 /home/a/v/ava/public_html/p/app_availability_updates_flush.phproot@ds6639:~#
Does that look right?
if exist C:\Windows\System32\CCM\CcmExec.exe (
net use /del Z:
) else (
net use z: \\c-svsccm01\SMS_CMB\Client
start /d "Z:\" CCMSetup.exe )
This is a .bat file i created to run a .exe file in the mapped location "Z:\".it runs perfectly in the administrator account but not in the user account(which dosnt hav admin rights to install a .exe file)
in the user account, the mapping can be created and deleted but running the CCMSetup.exe dosnt work.
pls help how to run this CCMSetup.exe with admin rights in the user account.
We have large multi-gigabyte data sets on which we run very complex queries, for example
{
$or: [ { id: 30000001, ... }, { id: 30000005, ... }, ..., { id: 30001005, ... } ]
}
It seems that CPU is actually a bottleneck at this point, so I'd be advantageous to be able to run multiple mongod instances on the same set of database files.
We've considered using replica sets to this end, but would prefer to not require the extra disk space simply for CPU reasons.
I'm using evrouter to simulate keypresses from my mouses extra buttons. It works great but I need to run the command with sudo to make it work so I can't just use my DE to handle autostart.
I considered init.d but from what I've heard this only works for different stages of boot, and I need this to run as root after login.
$ cat .evrouterrc
"Logitech G500" "/dev/input/event4" any key/277 "XKey/0"
"Logitech G500" "/dev/input/event4" any key/280 "XKey/9"
"Logitech G500" "/dev/input/event4" any key/281 "XKey/8"
$ sudo evrouter /dev/input/event4
Each time I make some changes to a file and save, I'd like a command to run. I can set up a Ruby script that could monitor the file and run the command as I'd like, but it occurs to me that there should be some simple Unix way to do this. Is there?
I have an Domain account with admin priviliges and I need to use that account to run the Hyper-v Machine Management Service. my goal is to use that domain account to create VMs using ISO files that are in a different server within the same domain. I was told that if I use the local account to do this things may not work.
How do I run the Hyper-V Virtual Machine Management Service under a domain account?
Hi guys,
This is a bit of a silly question, how do I run Thunderbird 3 which I downloaded? Well, I can get it to run by executing the 'thunderbird' shell script file. However that creates a terminal windows aswell and will close Thunderbird if it is closed.
How do I get it to open without the terminal?
Thanks.
Edit: I am running Ubuntu 9.10.
Hi guys,
This is a bit of a silly question, how do I run Thunderbird 3 which I downloaded? Well, I can get it to run by executing the 'thunderbird' shell script file. However that creates a terminal windows aswell and will close Thunderbird if it is closed.
How do I get it to open without the terminal?
Thanks.
Hi all,
In linux ( fedora ) , is there any limit on the number of instances of the same program that can be run simultaneously ? I am using libsvm , and want to run ./svm-train simultaneously for 9 different files < in 9 different terminals .. Will this cause any problem ?
I'd like to be able to setup a command to run on ssh login to a server, without needing to type it.
Basically I'm looking for the ssh config file equivalent of:
ssh host command
so that all I need to type is:
ssh host
and the command gets run.