I am looking for a way in Linux to run a batch script on a remote Windows machine. I already searched some forums and the Internet and found e.g. this question.
It seems that the easiest way so far is using ssh. But do Linux or Windows also offer some built-in tools to solve this problem (something like at-command for Linux-to-Windows)?
On my local environment, the following settings work in my index.php file:
$system_path = '../../ci/system/';
$application_folder = '../../ci/application';
My folder structure looks like this:
-ci
---system
---application
-public_html
---site
----index.php
This works on my local environment, but when I upload my files, I get an error message:
Your system folder path does not appear to be set correctly.
Please open the following file and correct this: index.php
I tried the following:
$system_path = dirname(__FILE__).'../../ci/system/';
$application_folder = dirname(__FILE__).'../../ci/application';
What is the Linux command to clear IP address of an interface without bringing it down and/or restarting network services. Seems strange ifconfig is able to change IP address but has no option to clear it, or am I wrong?
EDIT:As simple as ifconfig eth0 0.0.0.0. They should have put it in the man
I want to fire "svn update" command from a php script , the user for which is "apache".
How can I assign permissions to apache user to execute "svn update" ?
When I use zsh in interactive mode, I get some glitches. This mainly happens when the command spills over onto a new line and I use backspace, with backspace leaving behind some glitches on the screen and moving the cursor to an odd position.
It happens in a VT, in xterm and urxvt, although it is most noticeable with my chosen terminal, urxvt.
When I use zsh as a login shell, it does not happen at all.
What could be causing this?
This started happening when I installed Windows 7. I've tried with Filezilla and with the FireFTP Firefox plugin, and I could never connect. Filezilla gave the error message "ECONNREFUSED - Connection refused by server". I tried disabling the Windows Firewall, but no luck. Any ideas on what might be causing this?
I just discovered that I can connect with web services like net2ftp, but not with FTP clients.
I'm running this command to get a list of all Activesync users and export them to C:\activesync.csv
Get-ActiveSyncDevice | Get-ActiveSyncDeviceStatistics | sort-object status, devicetype , lastsyncattempttime | ft FirstSyncTime ,LastPolicyUpdateTime ,LastSyncAttemptTime ,LastSuccessSync , DeviceType , DeviceID, DeviceAccessState, Identity -a | Export-Csv c:\activesync.csv
The problem is that the CSV data doesn't match the console display if I omit the trailing | c:\activesync.csv ... where the data and columns displayed don't match.
Is this a bug in powershell?
Hello guys,
can somebody tell me how to pipe the output of the serial port to a file in Windows?
In Linux the command would be:
cat /dev/ttyS0 > /opt/logs/Serial.log
Thanks in advance
Batch-program launchs with 1 parameter (full path to file)
program.cmd "C:\Path\To\File\Filename.txt"
Now, this program consists of 1 command:
echo %1
And it just prints an argument: C:\Path\To\File\Filename.txt for the upper example.
But I want it to print an argument (full path) with another extension, e.g. .exe. For the upper example, I want it to print C:\Path\To\File\Filename.exe.
How to make it do that?
I want to restart ssh or sshd but I get this error:
qqqq@Matrix-Server:/$ sudo /etc/init.d/ssh stop
sudo: /etc/init.d/ssh: command not found
qqqq@Matrix-Server:/$
Do I need to install ssh or sshd or does it come with Ubuntu?
I have the following directory structure
books/java
books/java.ebooks
books/java.gwt
books/java.swing
books/javaee
I use this command to create an archive of all the directories starting with the letters a-m
tar czf books.a-m.no.AI.tgz --exclude=books/AI.and.algorithms --exclude=books/[N-Z]* --exclude=books/[n-z]* books
The .tgz archive that gets created does not contain the java.swing/ directory.
Am I missing something in my use of tar or is this a bug in cygwin?
I am trying to install Ubuntu 10.04 LTS on my laptop. First I installed it inside Windows and when it boots for first time I got the error message "couldn't find root filesystem , try partition table to fix the problem " . When I want to install it on a single partition (normally) and when it told me to chose a partition I don't find any partition (entire disk) .
I have 2 primary partitions and 3 logical partitions. How can I proceed with the install ?
I need to read some .docx files and the standard 3.0.1 version of OpenOffice writer that comes with Unbuntu 9.04 just ain't handling it. I tried the instructions from the following site: http://news.softpedia.com/news/How-to-Install-OpenOffice-org-3-1-on-Ubuntu-9-04-111105.shtml, both the GUI steps in the main article, and a scripted version in one of the comments, but my system never seems to do the partial update, and the OpenOffice version is unchanged after I uninstall and reinstall it from the command line. Has anybody had similar problems?
I have set the Mail app from Microsoft (WinRT) as the default application for mail in Default Programs. However, when I right-click on a file, and select Send to Mail recipient I get a message box saying:There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default Programs control panel.
Is there a way to get this action working with Mail?
I'm seeing some errors in my apache logs and they may (or may not)
be related to some packages that I recently installed/removed using Yum.
Is there a way to view the history of Yum packages that have been updated/installed/removed ?
I could use the "history" command from unix, but some installations may have been done with different accounts. I've tried searching the web and reading the man page too but haven't found anything.
In Excel 2007, when I click a hyperlink, it opens in IE.
I'm running XP Professional SP3.
Firefox is set as my default browser. Links in Word and Outlook open in Firefox. But Excel opens them in IE. Anyone know how to fix it?
Edit:
Process Explorer shows the command line for IE to be
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -Embedding
Thanks!
Dell computer with Windows 7 and Outlook 2003. I recently added a smart card reader to my computer for the National Guard so that I can access some military sites that require a smart card to log in. Now, every time Outlook attempts to download any mail from my civilian AT&T account (a pop e-mail server), I get a message asking me to "Insert a smart card". I've traced it to the send/receive feature (specifically receiving e-mails) but can find no reason that Outlook should be looking for a smart card.
According to MSDN installer sets ROOTDRIVE to the local drive that can be written to having the most free space. In my situation it is a slow USB drive that I use for nightly backup, but I would prefer to use my C drive for the install folder.
But somehow I can't figure out how to set this property from command line or through PowerShell. I found that it is possible, but these instructions don't make any sense
I got the following command with this error
rsync -avz --links -O /home/jansiatest/.jenkins/workspace/svn_to_demo/trunk/CPS/ [email protected]:/home/tasklite/temp
sending incremental file list
./
rsync: failed to set permissions on "/home/tasklite/temp/.": Operation not permitted (1)
But the thing is that i don't want to change permission of "/home/tasklite/temp/". How can i set that?
Hi, I'm trying to mount a folder located at 10.0.0.1:/pxe/ on eth1 but I'm not sure how to do this with two NICs enabled. The command mount 10.0.0.1:/pxe/ /mnt/pxe/ works fine when I only am using the one NIC the appropriate machine is on, but how can I specify to use eth1 when eth0 is also enabled? Thank you.
I found the following sentence:
Many Windows-Users may have wondered
about the mDNSResponder.exe process
running all the time. It’s Bonjour.
Does anybody know how can I see these processes (I do not mean "mDNSResponder.exe". I mean in general.). It should be some analog of "top" command in Linux.
I'm trying to recover some data using testdisk and running ubuntu from a live cd.
When i choose the undelete option i get the following message and it takes me out of testdisk:
file undeleteAborded (core dumped)
do you know why? can you give me some advices, tips about what to do?
hi,
I just installed the openSuse 11.2 , but i insert my pen drive to usb port it is not getting recognised and mounted,
I used following the command to prob the OS
lsusb = no results
lshal |grep usb = not result
I was able to share my laptop's internet with my smartphone by using this command "netsh wlan start hostednetwork".
But when I installed Avast in my Windows 8 OS, I am able to start the hostednetwork as before and my smartphone also finds the virtual AP but still I can't use internet on the smartphone.
It's like the internet sharing has been disabled by the Antivirus.
How do I tell Avast that its okay to use the hostednetwork?