Rob van der Woude's Scripting Pages

Vivacell Hamarner Fixed -

I used to get many questions about unattended FTP scripts.

On this page I will show some examples of unattended FTP download (or upload, the difference in script commands is small) scripts.

Command Line Syntax

    FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [host]
where:
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A Login as anonymous (available since Windows 2000).
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote host to connect to.
Notes: (1) mget and mput commands take y/n/q for yes/no/quit.
  (2) Use Control-C to abort commands.

The -s switch is the most valuable switch for batch files that take care of unattended downloads and uploads:
FTP -s:ftpscript.txt
On some operating systems redirection may do the same:
FTP < ftpscript.txt
However, unlike the -s switch its proper functioning cannot be guaranteed.

FTP's Interactive Commands

The following table shows the FTP commands available in Windows NT 4. The difference with other operating systems is marginal.
The actual commands available can be found by starting an FTP session and then typing a question mark at the FTP> prompt.
To get a short description af a particular command, type a question mark followed by that command: (user input shown in bold italics):

C:\>ftp
ftp> ? get
get             receive file
ftp> ? mget
mget            get multiple files
ftp> bye

C:\>







FTP commands
Command Description
!   escape to the shell
?   print local help information
append   append to a file
ascii   set ascii transfer type
bell   beep when command completed
binary   set binary transfer type
bye   terminate ftp session and exit
cd   change remote working directory
close   terminate ftp session
debug   toggle debugging mode
delete   delete remote file
dir   list contents of remote directory
disconnect   terminate ftp session
get   receive file
glob   toggle metacharacter expansion of local file names
hash   toggle printing `#' for each buffer transferred
help   print local help information
lcd   change local working directory
literal   send arbitrary ftp command
ls   nlist contents of remote directory
mdelete   delete multiple files
mdir   list contents of multiple remote directories
mget   get multiple files
mkdir   make directory on the remote machine
mls   nlist contents of multiple remote directories
mput   send multiple files
open   connect to remote tftp
prompt   force interactive prompting on multiple commands
put   send one file
pwd   print working directory on remote machine
quit   terminate ftp session and exit
quote   send arbitrary ftp command
recv   receive file
remotehelp   get help from remote server
rename   rename file
rmdir   remove directory on the remote machine
send   send one file
status   show current status
trace   toggle packet tracing
type   set file transfer type
user   send new user information
verbose   toggle verbose mode

Creating Unattended FTP Scripts

Suppose an interactive FTP session looks like this (user input shown in bold italics):

C:\>ftp ftp.myhost.net
Connected to ftp.myhost.net.
220 *** FTP SERVER IS READY ***
User (ftp.myhost.net:(none)): MyUserId
331 Password required for MyUserId.
Password: ****
230- Welcome to the FTP site
230- Available space: 8 MB
230 User MyUserId logged in.
ftp> cd files/pictures
250 CWD command successful. "files/pictures" is current directory.
ftp> binary
200 Type set to B.
ftp> prompt n
Interactive mode Off.
ftp> mget *.*
200 Type set to B.
200 Port command successful.
150 Opening data connection for firstfile.jpg.
226 File sent ok
649 bytes received in 0.00 seconds (649000.00 Kbytes/sec)
200 Port command successful.
150 Opening data connection for secondfile.gif.
226 File sent ok
467 bytes received in 0.00 seconds (467000.00 Kbytes/sec)
ftp> bye
221 Goodbye.

C:\>


An FTP script for unattended file transfer would then look like this:

USER MyUserId
MyPassword
cd files/pictures
binary
prompt n
mget *.*

Note that I left out the BYE (or QUIT) command, it isn't necessary to specify this command in unattended FTP scripts (though it doesn't do any harm either).

As you can see, using a script like this is a potential security risk: the password is stored in the script in a readable form.

As Tom Lavedas once pointed out in the alt.msdos.batch newsgroup, it is safer to create the script "on the fly" and delete it afterwards:

@ECHO OFF
:: Check if the password was given
IF "%1"=="" GOTO Syntax
:: Create the temporary script file
> script.ftp ECHO USER MyUserId
>>script.ftp ECHO %1
>>script.ftp ECHO cd files/pictures
>>script.ftp ECHO binary
>>script.ftp ECHO prompt n
>>script.ftp ECHO mget *.*
:: Use the temporary script for unattended FTP
:: Note: depending on your OS version you may have to add a '-n' switch
FTP -v -s:script.ftp ftp.myhost.net
:: For the paranoid: overwrite the temporary file before deleting it
TYPE NUL >script.ftp
DEL script.ftp
GOTO End

:Syntax
ECHO Usage: %0 password

:End

Sometimes it may be necessary to make the script completely unattended, without the user having to know the password, or even the user ID, but with the possibility to check for errors during transfer.
There are several ways to do this.
One is to redirect FTP's output to a log file and either display it to the user or use FIND to search the log file for any error messages.
Another way to do this, on the fly, is by displaying FTP's output on screen, in the mean time using FIND /V to hide the output you do not want the user to see (like the password and maybe even the USER command):

FTP -s:script.ftp ftp.myhost.net | FIND /V "USER" | FIND /V "%1"

It is important not to use FTP's -v switch in either case.

Summary

To create a semi interactive FTP script, you may need to split it into several smaller parts, like an unattended FTP script to read a list of remote files, the output of which is redirected to a temporary file, which in turn is used by a batch file to create a new unattended FTP script on the fly to download and/or delete some of these files.

Create these files by writing down every command and all screen output in an interactive FTP session, analyze this "log" thoroughly, and test, test, and test again!

And don't forget to log the results by redirecting the script's output to a log file. You may need it later for debugging purposes...

Alternatives

Instead of Windows' own native FTP command, you can choose from a multitude of "third party" alternatives.
I'll discuss three of those alternatives here: a command-line tool, a GUI-tool and VBScript with a third party ActiveX component.

Note: GNU WGET handles HTTP downloads just as easily.

WGET

WGET is a port of the UNIX wget command.

WGET is perfect for anonymous FTP or HTTP downloads (sorry, no uploads), but it can be used for downloads requiring authentication too.

GNU WGET comes with help both in the (text mode) console and in Windows Help format.

The basic syntax for an FTP download doesn't get any simpler than this:

WGET ftp://ftp.mydomain.com/path/file.ext

for anonymous downloads, or:

WGET ftp://user:password@ftp.mydomain.com/path/file.ext

when authentication is required.

Note: This is not secure, as you would need to store your user ID and password in unencrypted format in the batch file.
Besides that, the user ID and password will be logged together with the rest of the URL on all servers associated with the file transfer.
Read the GNU WGET help file for more information on securing user IDs and passwords.

WinSCP

WinSCP is a free open-source SFTP and FTP client with a command line/scripting interface as well as a GUI.

WinSCP can be used for uploads and downloads.

ScriptFTP

ScriptFTP is a tool to, you may have guessed, automate FTP file transfers.
It supports plain FTP, FTPS and SFTP protocols.
Commands to e-mail and/or log results are available.
All commands can be run on the command line or from a script.

Scripts can be encrypted, or converted online to self-contained executables.

Vivacell Hamarner Fixed -

In the bustling streets of Yerevan, where the pink tufa stone meets the digital age, Gevorg lived a life of constant motion. As a freelance architect, his "office" was whichever cafe had the best view of Mount Ararat. His primary tool was his mobile, a sleek device buzzing with the life of a dozen Viva tariff plans.

But when Gevorg finally moved into his own studio in the new Solar City district, he realized he needed something more permanent—a "fixed" presence that matched the solid walls of his new life. The Convergence

He visited the Viva Service Center on Amiryan Street, surrounded by the hum of customers seeking the latest Bronze, Silver, or Gold mobile numbers. Gevorg wasn't looking for a "Platinum" mobile number today; he was looking for the "Viva Home" solution.

"I need a number that stays," he told the agent. "Something for the studio that feels like home, but works with my mobile lifestyle." The Solution: Viva Home and Beyond

The agent explained how Viva Home used modern fiber-optic technology to provide not just high-speed internet and IP television, but also a stable fixed telephony connection. For Gevorg, it was the digital equivalent of a foundation stone.

He learned about the 4D package, a partnership with Rostelecom that bundled:

Fixed Internet: High-speed fiber for his architectural renderings. IP-TV: Over 55 channels for quiet evenings.

Fixed Telephony: 200 minutes included to call other RA fixed networks, ensuring he could reach his more traditional clients who still relied on landlines. The Echo of the Past

As the technician set up the fiber line, Gevorg remembered his father’s old Etros desktop phone—part of the original “Our Number” package. Back then, it was a revolution: a fixed phone that you could take with you when you moved houses, supporting both mobile and fixed networks simultaneously.

Today’s technology was sleeker, but the sentiment remained the same. Whether it was a fixed short number for his growing business or a standard home line, these numbers weren't just digits; they were geographic anchors. The Connected Studio

Now, when clients call Gevorg's fixed number, it signals a professional stability. If they call his mobile, they get the man on the move. Between the two, the entire map of Armenia—from the GSM networks in the mountains to the fixed lines in the heart of the city—is just a 111 Hot Line call away.

Gevorg looked out at the city, his mobile in his pocket and his fixed line on the desk. In the world of VivaCell, he was finally fully "fixed" and perfectly mobile. 4D | Fixed Internet and TV - Viva

Viva (formerly VivaCell-MTS) provides comprehensive solutions for managing fixed phone lines and making calls to fixed networks in Armenia. 📞 Overview of Viva Fixed Line Services

While Viva is primarily known for its massive mobile footprint in Armenia, it has expanded heavily into home and business fixed services through fiber-optic and specialized corporate tech. 🏠 1. Home Solutions (Viva Home & Bundles)

Viva provides direct landline numbers to residential spaces through bundled packages:

Viva Home: This modern fiber-optic network delivers IP television, high-speed internet, and fixed telephony straight to homes. vivacell hamarner fixed

4D and Quartet Packages: Viva partners with major infrastructure providers to bundle your mobile minutes, mobile data, home internet, and landline minutes into one predictable monthly bill. 🏢 2. Specialized Desktop Solutions

For areas without fiber or for small offices that want a physical desk phone, Viva previously offered or archived systems like "Our Number". This bridged mobile and fixed tech by putting a standard desk phone in a home or office that operated via the cell network, maintaining a dedicated fixed line number even if you physically relocated. 📋 Calling Rates to Fixed Numbers ("Hamarner")

When calling from a standard Viva mobile plan to fixed (landline) networks in Armenia, your costs depend strictly on your active tariff plan.

Within Plan Bundles: Many of Viva's current monthly plans include generalized "on-net" or "all RA networks" minute buckets that cover calls to Armenian landlines without extra fees.

Out-of-Bundle Rates: If you exhaust your plan's minutes or use a basic prepaid line, calling an RA (Republic of Armenia) fixed network typically costs around 35 AMD per minute (rates can fluctuate depending on your specific legacy or current plan).

Bundled Fixed Rates: For bundled home solutions with an active landline, extra calls from your home line to other Armenian landlines typically scale down to just 5 AMD per minute after plan consumption. 🛠️ Key Contact Information

If you need to query your specific fixed services or resolve issues, utilize the following direct line channels provided by the official Viva Help Center:

📱 Mobile Customer Care: Dial 111 directly from any Viva mobile number.

☎️ Fixed Services Hotline: Dial 060 61 00 00 for inquiries regarding fixed internet, IP-TV, or landline solutions.

🌐 Online Chat: Reach out directly through the "111 Online" page via the Viva Internet Assistant portal.

To help you get the most accurate details for your situation, let me know:

Are you looking to buy/set up a new landline or do you need to know the cost of calling landlines from your mobile? Is this for a personal residence or a business/office?

Are you already on a specific Viva plan or looking to switch? Package | Our Number | Archive - Viva

Viva (formerly VivaCell-MTS) fixed phone number or related services in Armenia, you can choose between dedicated fixed-line solutions or "Our Number" packages that function on desktop-style phones. PanARMENIAN.Net 1. Types of Fixed Number Services "Our Number" Package:

This plan allows you to use a mobile communication service on a specialized Etros desktop phone In the bustling streets of Yerevan, where the

. It is designed for home or office use and supports both voice calls and SMS. Approximately AMD 2,000 per month

Often includes monthly on-net airtime (e.g., 300 minutes) and a limited amount of airtime for other networks. Fixed Internet & TV Bundles (4D):

Viva partners with Rostelecom to offer "4D" packages that include fixed internet, IP-TV, and IP-telephony (fixed voice) services. Business Fixed Lines: For corporate needs, Viva provides dedicated Business Connectivity and Cloud IT solutions. www.viva.am 2. How to Purchase a Number

You can select a specific number (Regular, Bronze, Silver, Gold, or Platinum) by visiting a Viva Service Center Standard Numbers: Often free or have a nominal starting price. Premium Numbers: Prices range from AMD 7,000 (Bronze) AMD 150,000+ (Platinum) depending on the pattern's memorability. www.viva.am 3. Support & Contact Information

If you need specific details about current fixed line availability or technical setup, use these official contact methods: Fixed Services Hotline: 060 61 00 00 for information specifically about fixed-line services. General Hotline: from a Viva number or 093 297111 from any other phone. Online Assistant: 111 Online Chat on their website for real-time support. www.viva.am to your current location in Armenia? 4D | Fixed Internet and TV - Viva


Mail-in Repair Services

Several online services now advertise "Vivacell Hamarner fixed express." Look for:

Caution: Always read reviews. Some mail-in services have been accused of swapping good parts.

Phase 1: DIY Troubleshooting (Software Issues)

Before opening the phone, try these software fixes.

The Lesson: Understanding Vivacell Hamarner (Fixed)

The story of Aram and Anahit highlights the distinct advantages of Vivacell Hamarner (Fixed numbers). In Armenia, while mobile penetration is high, fixed numbers (often starting with area codes like 010, 011, etc., outside of the mobile prefixes like 093, 094, 099, 077) serve crucial roles:

  1. Stability: Unlike mobile signals that fluctuate based on your location or weather, fixed lines (especially modern fiber-optic connections) offer a stable, high-quality connection.
  2. Business Credibility: Just as the fixed line gave Grandma a reliable way to reach home, businesses in Armenia use fixed Vivacell numbers to establish trust. A landline suggests a physical, permanent location.
  3. Home Internet Bundles: In Armenia, most Vivacell fixed lines are part of internet packages. You get high-speed Wi-Fi for your devices, and a landline phone is included for calls.
  4. Emergency Use: In cases of emergency or power outages affecting mobile towers, traditional fixed infrastructure often remains a reliable backup.

Helpful Tip for Expats and New Residents: If you are moving to Armenia and looking for a home internet provider, choosing a Vivacell (Viva-MTS) fixed package not only gives you internet but also a local landline number. Even

(formerly VivaCell-MTS) in Armenia, "fixed hamarner" (fixed numbers) typically refer to landline or VoIP services provided by the company. Viva Fixed Number Formats

Viva-MTS fixed phone numbers generally use non-geographic network codes: Common Prefixes: Support Line:

For information specifically regarding fixed services, you can call 060 61 00 00 Essential Viva Service Numbers

If you need to contact Viva regarding your fixed line or mobile services, use these direct codes: 24/7 Call Center: from any Viva number or 093 297111 from other networks. General Inquiries: +374 60 77 11 11 Emergency Services (RA): 101 / 112 / 911 : Fire / Emergency. : Ambulance. International Dialing for Fixed Lines

To call a Viva fixed number from abroad, use the following format: (Country Code) + (Network Code) + (Subscriber Number). For further assistance, you can visit a Viva service center or use the 111 Online chat on the Viva website MobileRepair

Title: "VivaCell MTS Hammer Fixed: A Game-Changer for Mobile Network Users"

Introduction:

VivaCell MTS, one of the leading mobile network operators in Armenia, has recently introduced a new and innovative solution - the VivaCell MTS Hammer Fixed. This revolutionary device has been designed to provide users with a stable and fast internet connection, bridging the gap between urban and rural areas. In this blog post, we will explore the features and benefits of the VivaCell MTS Hammer Fixed and how it is changing the way people access the internet.

What is VivaCell MTS Hammer Fixed?

The VivaCell MTS Hammer Fixed is a fixed wireless broadband solution that uses advanced technology to provide users with high-speed internet access. The device is designed to be easy to use and requires minimal technical expertise, making it accessible to a wide range of users. With the VivaCell MTS Hammer Fixed, users can enjoy fast and reliable internet connectivity, stream their favorite content, and stay connected with friends and family.

Key Features of VivaCell MTS Hammer Fixed:

Benefits of VivaCell MTS Hammer Fixed:

Conclusion:

The VivaCell MTS Hammer Fixed is a revolutionary device that is changing the way people access the internet in Armenia. With its fast and reliable internet connectivity, ease of use, and wide coverage area, the device is a game-changer for mobile network users. Whether you are a student, a business owner, or simply someone who wants to stay connected, the VivaCell MTS Hammer Fixed is an excellent solution that is worth considering.

Call to Action:

If you are interested in learning more about the VivaCell MTS Hammer Fixed or would like to purchase the device, please visit the VivaCell MTS website or visit one of their retail stores. With the VivaCell MTS Hammer Fixed, you can enjoy fast and reliable internet connectivity and take your online experience to the next level.


The Lifeline and the Legacy: Inside the Phenomenon of Vivacell’s ‘Fixed’ Tariffs

By [Your Name/AI Assistant]

In the bustling streets of Yerevan, the shuffling of pockets often produces a specific sound: not the jingle of coins, but the crinkle of a scratched paper card. For over a decade, the phrase “Vivacell hamarner fixed” (Vivacell fixed numbers/tariffs) was not just a marketing slogan; it was a cultural baseline. It represented the moment telecommunications in Armenia shifted from a luxury for the elite to a utility for the masses.

To understand why the concept of "fixed" tariffs became so pivotal, one must look past the dry technicalities of per-minute billing and into the socioeconomic landscape of a nation in transition.

1. Software-Level Fixes (Try First)