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 web application that runs a program which needs X. I'm using xvfb to launch it; I want to run it as another user.
I could probably do sudo -u username -p password my command. However, I'm not feeling too good about storing the users password in plain text.
Is there a "smarter" way of doing this?
I am using Curl, and am having a problem trying to get it to recognize the $http_proxy environment variable when using sudo curl. I tried putting export http_proxy=.... in my /etc/profile and restarting the shell, to no avail. I would rather not use su -l and run the command while logged in as root.
Does the VSFTPD server support Clear Command Channel (CCC) per RFC 2228?
If it does support CCC, does it need to be enabled? Or, is it enabled with the whole FTPS suite of configuration parameters?
i have to open command prompt, but my laptop is not starting, when i on it, it show a error.. BOOTMGR is compressed restart press ctrl+alt+dlt. i have to open dos and launch ie and then delete some file from c drive
I have an existing XP installation on a 160GB disk, with about 90 GB free.
I'm trying to install Win7 on the same HDD, following directions from here.
The question is: How long should it take to run the "shrink" command, given the above parameters? How much space will that free up for Win7?
Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?
I have the default package of Ruby installed that shipped with the OS, which is an older version.
I have recently installed MacPorts with the latest Ruby version which is installed in a seperate location:-
/opt/local/bin/
But when I run
which ruby
I get
/usr/bin/ruby
Is there any way to edit the path of the command ruby so it would reference the new installation in the /opt/ directory?
Thanks in advance.
This single-command BASH script file is difficult to understand, so I want to write a comment for each of the actions:
grep -R "%" values* \
| sed -e "s/%/\n%/" \
| grep "%" \
| grep -v " % " \
| grep -v " %<" \
| grep -v "%s" \
| grep -v "%d" \
| grep -v "%1$s"
I would hate having to duplicate lines, or having each comment far away from the line it applies to.
But at the same time BASH does not seem to allow "in-line" comments.
Any elegant way to solve this problem?
My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find ~ *.pdf or find ~ "*.pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
I'm in a ssh connection and I would like to play a sound after a command completes (not on the server where I connected).
Something:
ssh [email protected]
make && play-sound-local
I have built-in pc-speaker disabled so echo -e "\a" doesn't work.
Any suggestions?
I have a CSV file where data are in the following format
|001|,|abc,def|,123456,789,|aaa|,|bbb|,444,555,666
I want to replace only those "," that appears between numbers with some other character like say SOH or $ or *
other "," appearing in the line should not get replaced i.e. to say I wish to have following output
|001|,|abc,def|,123456*789,|aaa|,|bbb|,444*555*666
Can someone please help me with sed command pattern to get the above desired output
Hi All,
I have a situation that I have to use raw ftp commands such as cwd, retr, size, stor, type, and rest. I found out that most of GUI based FTP clients do not support command line commands.
Is there a window ftp client that supports raw ftp commands?
Hi...i wanna list every file end at conf, and i wanna to copy to a file the results(with command find -exec)
I try this:
find -name *conf -exec /home/ubuntu/myfile
is this wrong?
When I used to execute the jobs command I got a list of running processes with their respective process-ID, but in Ubuntu lucid lynx this doesn't seem to be working. Anyone have a solution?
I'm running the following grep command
var=`grep -n "keyword" /var/www/test/testfile.txt`
This work just as expected but I need to insert the file name dynamically from a loop like so:
var=`grep -n "keyword" /var/www/test/`basename ${hd[$i]}`.txt`
But obviously the use of ` brakes this with a unexpected EOF while looking for matching ``' and unexpected end of file
Any ideas of away around this?
Hi!
I need to install an ISAPI extension on IIS 5.1 using command line. On windows server 2003 there is a script iisext.vbs but on windows xp it's not present.
When I type C-c C-v to see the list of TODOs, or C-/ m to see headlines with a certain tag, org-mode shows me a sparse tree with the results.
How do I then go back to seeing the tree the way it was before I issued this command? Note that I haven't changed the file in any way, so this isn't your normal "undo", it's about going back to how org-mode was displaying the tree before.
I am attempting to use regular expressions to remove set of files however the bash shell returns the message
rm: cannot remove `[0-99]+ -': No such file or directory
rm: cannot remove `[a-zA-Z': No such file or directory
rm: cannot remove `]+.[a-z]+': No such file or directory
The command is [0-99]+\ - [a-zA-Z ]+\.[a-z]+
Questions
Can I use regular expressions?
If yes, how do I use them with commands such as rm, mkdir, etc
I am running the top command to see details about specific processes. The output is piped to grep like so:
top -n 1 | grep jre
The output is usually around 4 lines, and I would like to prefix the current time to each line so it would be something like:
Before:
2772 deleteme 20 0 2832 1156 872 R 2.0 0.1 0:00.01 top
After:
13:46 25-08-2012 2772 deleteme 20 0 2832 1156 872 R 2.0 0.1 0:00.01 top
I am trying to schedule the opening of a command line to run task in another pc. But I am not able to open them.
AT \OTHERPC 15:00 "C:\Windows\System32\cmd.exe" BATCHJOB.bat
Any ideas?
I have a bunch of Apache log files that I would like to analyze. I'm looking for a tool that doesn't require much setup; something that I can run a log through the command line, without messing around on our live web servers.
Any recommendations?
I would like to do this because i have half installed service because of installation failure which is just there non functioning.
How can we remove the windows service using the command line ?
I have a problem with drive cloning.
Im using dd on damaged disk with bad sectors trying to make an image from it. Im booting computer with Live Linux CD .
Damaged disk: sda 146GB (NTFS)
External drive: sdb 300GB (NTFS)
After running the command below im running out of space on disk sdb.
dd if=/dev/sda of=/dev/sdb/hdd.img bs=4096 conv=noerror,sync
The question is why im running out of space on disk sdb ?