Showing posts with label Replace. Show all posts
Showing posts with label Replace. Show all posts

Monday, 29 February 2016

How to Use FTP to Transfer Directories in AIXIn Feburary 2016 29,

In Feburary 2016 29,
Open a terminal window and type 'ftp hostname' to connect to the remote FTP server. Replace 'hostname' with the name or address of the remote server.
Type 'mkdir directoryname' to create a new directory on the FTP server. Replace 'directoryname' with the name of the directory you want to create.
Type 'cd directoryname' to change to the directory you created. Replace 'directoryname' with the name of the directory you created.
Type 'put /path/to/directory/*' to copy the entire contents of the directory to the remote directory you created. Replace '/path/to/directory/' with the local path to the directory you want to transfer. The asterisk at the end is used to copy all files contained in the directory.
Type 'quit' to exit the FTP program.
In Feburary 2016 29,

Saturday, 27 February 2016

How to Send a File to an IP Address With Command PromptIn Feburary 2016 27,

In Feburary 2016 27,
Click 'Start' and type 'run' into the search box. Click on the 'Run' link, then type 'cmd' and press 'Enter.' Click on the new window to select it.
Change the command prompt's current directory to the folder containing the file you want to send by typing the following command:cd '\myFiles\projectA'Replace '\myFiles\projectA' with the full path to the folder containing the file. Press 'Enter.'
Type the following command to launch the command-line FTP client on your prompt:ftp 74.120.4.80Replace '74.120.4.80' with the IP address of the computer where you want to send the file. Press 'Enter.' The FTP client will await your next command on its own command prompt.
Type the following command:put myFile.docReplace 'myFile.doc' with the name of the file you want to send. Press 'Enter.' After a delay that depends on the file's size, the FTP client will return control to you. At that point, the file will have been successfully sent to the remote IP address.
Type the following command:byePress 'Enter.' The FTP client will exit to the usual command prompt.
In Feburary 2016 27,

Thursday, 25 February 2016

How to FTP a Zip FileIn Feburary 2016 25,

In Feburary 2016 25,
Create a folder on your desktop or in a location that you can easily find.
Copy the ZIP files to this newly created folder.
Open a command prompt by typing 'CMD' without the quotes from the RUN line in windows. This same command will work from the windows search bar.
Type 'FTP' into the newly opened command window. The prompt has changed to say 'ftp'. You are now ready to connect to your ftp server.
Type 'ftp.myservername.com' without quotes at the ftp prompt. Replace myservername with the name of your server.
Successful completion of step 5 will present you with a connection to the ftp server. Type your user name at the 'user' prompt.
Successful completion of step 6 will present you with a password prompt. Type your password at the 'Password' prompt.
Successful completion of step 7 will present you with a basic 'ftp' prompt. You are now ready to upload your zip files. Navigate to the folder which you stored your files by typing 'lcd Folder Name' without quotes. Substitute folder name with the folder name you created. The lcd command allows you to change directories locally.
Create a folder on the ftp server for your ZIP files by using the 'MKDIR' command. Type 'MKDIR Myfiles' without the quotes and substitute myfiles with your desired folder name.
Change directories to the folder you just created by typing 'CD Your New Name' without the quotes. Substitute your new name for the name of your folder.
FTP your files by typing 'PUT myfile.zip' without the quotes. Substitute myfile.zip with the name of your ZIP file. Once this step is completed you will be presented with a confirmation step and a new 'ftp' prompt. You can now repeat this step for additional files.
Type 'bye' without the quotes at the ftp prompt to log off of the ftp server.
Type 'exit' without the quotes at the command prompt to close this window.
In Feburary 2016 25,

Saturday, 20 February 2016

How to Pass a URL to Windows Explorer From a Batch FileIn Feburary 2016 20,

In Feburary 2016 20,
Open Notepad and paste the following text into a blank document:ftp://MyUserID@MySite.comReplace 'MySite.com'with the URL of your FTP site. Replace 'MyUserID' with your logon user ID. Do not include 'www' in the URL. For example, if your site is http://www.some_site.com and your user ID is xyz, create this string:ftp://xyz@some_site.com
Save the file to your desktop as openFTP.bat. This creates a batch file. Windows will execute the 'Explorer' command in the batch file when you run it.
Locate the file on your desktop and double-click its icon. Windows will execute the batch file and pass the URL to Windows Explorer. Windows Explorer will open and prompt you for the password to your FTP site. Enter the password and the site will open. Files on the site will appear in the Explorer window.
In Feburary 2016 20,

Sunday, 14 February 2016

Tutorial for SNMP in PHPIn Feburary 2016 14,

In Feburary 2016 14,
Right-click the PHP file you want to edit and select 'Open With.' Click your preferred PHP editor.
Use the following function to connect to the device on your network:$device = snmpget('127.0.0.1', 'public', 'system.SysContact.0');Replace the IP address with the IP address of the device you want to access.
Retrieve information about the device. The following code gets a list of data from the device:$data snmp_read_mib('./MIB.txt');Replace 'MIB.txt' with the MIB file that contains the SNMP information on the device.
Print the output to the browser window. The following code prints the data to the browser for your review:print_r( snmprealwalk('$data, 'FOO-BAR-MIB::table' );
In Feburary 2016 14,

Friday, 12 February 2016

How to Back Up a Brocade SwitchIn Feburary 2016 12,

In Feburary 2016 12,
Log in to the FTP server. Open a command-line session on the switch from the FTP server by typing the following command into a shell:telnet 192.168.45.27Replace '192.168.45.27' with the Internet Protocol (IP) address of the Brocade switch.
Enter the user name and password to log into the switch as administrator.
Type the following command:configuploadPress 'Enter.' The Brocade switch will prompt you for the IP address of the FTP server; the user name and password required by the FTP server to accept a file upload; the name the file containing the Brocade switch parameters is to have on the FTP server (choose something meaningful, containing the date and the name of the switch); and the protocol to be used for the upload (enter 'ftp'.) After you answer all prompts, the Brocade switch will upload the file containing its full configuration to the FTP server.
In Feburary 2016 12,

Wednesday, 10 February 2016

How to Access cPanel on GoDaddyIn Feburary 2016 10,

In Feburary 2016 10,
Open your browser and type in the following address into the address bar: 'https://[[ipaddress]]:2087/." Replace 'ipaddress' with the actual IP address of your server. You can find your IP address in the email that GoDaddy sent you upon registration.
Type in your username and password. The username is 'root,' while the password is your GoDaddy account password. You can also find it in your GoDaddy registration email.
Click on 'OK' to access your cPanel.
In Feburary 2016 10,

Tuesday, 9 February 2016

How to Install Firefox With CMDIn Feburary 2016 09,

In Feburary 2016 09,
Open Notepad and paste the following text into a new document:open releases.mozilla.organonymousXYZ@XYZ.COMcd pub/mozilla.org/firefox/releases/5.0/win32/en-US/binaryget 'Firefox Setup 5.0.exe'These are batch commands that connect your computer to Mozilla's 'Pub' folder on its FTP site. After connecting, the commands download the latest version of Firefox to your hard drive. Replace 'XYZ@XYZ.COM' with your email address. The Mozilla FTP site uses that as your login password.
Click the 'File' menu at the top of Notepad, and then click 'Save As.' Notepad opens its 'File Save' window.
Locate the address bar at the top of that window under the words 'Save As.' Paste %userprofile%' (without the quotes) into that text box, and press 'Enter.' This action causes Notepad to switch to your user profile folder.
Type 'mozillaConnect.scr' in the 'File Name' text box near the bottom of the window, and click 'Save.' Notepad saves this file containing batch commands to your user profile folder.
Click the Windows Start button and type 'CMD.' The 'cmd.exe' icon will appear at the top of the Start menu. Click that icon to open the CMD window.
Type the following text in the CMD window:ftp -s:mozillaConnect4.scrPress 'Enter.' Windows launches its FTP program and processes the commands stored in the file you created. Windows also displays a message that begins with 'Opening BINARY mode data connection.' Wait while Windows downloads the file. When the download completes, the 'ftp>' command prompt appears.
Type 'Quit' to disconnect from the Mozilla FTP site after that command prompt appears.
Type the following text in the CMD window: 'Firefox Setup 5.0.exe' Be sure to include the quotes as shown. Windows begins installing the latest version of Firefox. Follow the instructions as the wizard guides you through the setup process.
In Feburary 2016 09,

Friday, 5 February 2016

How to Stop Link HijackingIn Feburary 2016 05,

In Feburary 2016 05,
Open an HTML editing program. Create a new HTML Document. Highlight and copy the following code:
Paste the code into the HTML document. Make sure the code appears below the
tag and above the
tag.
Edit the code you pasted in. Remove the area that appears as www.yourwebsite.com, and replace it with your affiliate link. Save the file as index.html on your computer.
Log in to the cpanel or control panel of your website. Go to the 'Files' section of your cpanel, and click on 'File Manager.' This will open the file directory of your website and allow you to upload the HTML file you created. Alternatively, you can use an FTP or file transfer program.
Create a new folder or directory within your website, and upload the index.html file to the folder. When a visitor goes to this folder, they will automatically be redirected to your affiliate link. Example:Redirect URL: www.yourwebsite.com/dogtrainingIn the above example, dogtraining is the newly created folder. The index.html file has been uploaded into it. When this URL is accessed, it automatically redirects a visitor to the affiliate link.
Open the web pages that contain hyperlinks of your affiliate URL. Replace them with the redirect URL you created. Your affiliate links are now cloaked and protected from hijackers.
In Feburary 2016 05,

Thursday, 4 February 2016

How to Compile an Assembly on UbuntuIn Feburary 2016 04,

In Feburary 2016 04,
Open Terminal.
Type 'sudo apt-get install nasm,' and press 'Enter.' Type your password, and press 'Enter, then the nasm compiler will install.
Type 'nasm -f elf -o test.o test.asm,' and press 'Enter.' Replace 'test' with the actual file name for your code. This compiles the code.
Type 'ld -o test test.o,' and press 'Enter' to link the executable.
Type './test,' and press 'Enter' to run the program.
AT&T Syntax
Open Terminal.
Type 'sudo apt-get install binutils,' and press 'Enter.' Type your password and press 'Enter.' You should receive a message that the 'as' compiler is already installed. If not, it will install.
Type 'as -o test.o test.s,' and press 'Enter' to compile the code.
Type 'ld -o test test.o,' and press 'Enter' to link the executable.
Type './test,' and press 'Enter' to run the program.
In Feburary 2016 04,