Sponsored Content
Full Discussion: unix and Windows
Special Forums Windows & DOS: Issues & Discussions unix and Windows Post 57606 by SeedySea on Wednesday 3rd of November 2004 05:00:24 AM
Old 11-03-2004
Many thanks guys, it's just good to know which path to set out on through the jungle!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies

2. UNIX for Advanced & Expert Users

Porting of Windows written unix scripts to unix platform

Can anybody help me in finding out a solution for the problem below? When we write .unix or .sh files in windows OS and port them to Unix platforms there is a character ^M inserted at the end of each line of the script file. During ftp porting I set the transfer mode as ASCII for the script... (7 Replies)
Discussion started by: tamilselvi
7 Replies

3. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

4. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

5. UNIX for Dummies Questions & Answers

Changing windows server alias name on windows or unix?

My situation is that we have production unix scripts that ftp files over to a windows server. I'm not sure if its a 2000 or 2003 server as I dont work on server, more on the unix side. It turns out that they are changing servers on the network. So they are migrating our data over from say Server 1... (1 Reply)
Discussion started by: NycUnxer
1 Replies

6. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

7. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

8. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

9. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
Dancer::Test(3pm)					User Contributed Perl Documentation					 Dancer::Test(3pm)

NAME
Dancer::Test - Test helpers to test a Dancer application SYNOPSYS
use strict; use warnings; use Test::More tests => 2; use MyWebApp; use Dancer::Test; response_status_is [GET => '/'], 200, "GET / is found"; response_content_like [GET => '/'], qr/hello, world/, "content looks good for /"; DESCRIPTION
This module provides test helpers for testing Dancer apps. Be careful, the module loading order in the example above is very important. Make sure to use "Dancer::Test" after importing the application package otherwise your appdir will be automatically set to "lib" and your test script won't be able to find views, conffiles and other application content. For all test methods, the first argument can be either an array ref of the method and route, or a scalar containing the route (in which case the method is assumed to be "GET"), or a Dancer::Response object. # all 3 are equivalent response_status_is [ GET => '/' ], 200, 'GET / status is ok'; response_status_is '/', 200, 'GET / status is ok'; my $resp = dancer_response GET => '/'; response_status_is $resp => 200, 'GET / status is ok'; METHODS
route_exists([$method, $path], $test_name) Asserts that the given request matches a route handler in Dancer's registry. route_exists [GET => '/'], "GET / is handled"; route_doesnt_exist([$method, $path], $test_name) Asserts that the given request does not match any route handler in Dancer's registry. route_doesnt_exist [GET => '/bogus_path'], "GET /bogus_path is not handled"; response_exists([$method, $path], $test_name) Asserts that a response is found for the given request (note that even though a route for that path might not exist, a response can be found during request processing, because of filters). response_exists [GET => '/path_that_gets_redirected_to_home'], "response found for unknown path"; response_doesnt_exist([$method, $path], $test_name) Asserts that no response is found when processing the given request. response_doesnt_exist [GET => '/unknown_path'], "response not found for unknown path"; response_status_is([$method, $path], $status, $test_name) Asserts that Dancer's response for the given request has a status equal to the one given. response_status_is [GET => '/'], 200, "response for GET / is 200"; response_status_isnt([$method, $path], $status, $test_name) Asserts that the status of Dancer's response is not equal to the one given. response_status_isnt [GET => '/'], 404, "response for GET / is not a 404"; response_content_is([$method, $path], $expected, $test_name) Asserts that the response content is equal to the $expected string. response_content_is [GET => '/'], "Hello, World", "got expected response content for GET /"; response_content_isnt([$method, $path], $not_expected, $test_name) Asserts that the response content is not equal to the $not_expected string. response_content_isnt [GET => '/'], "Hello, World", "got expected response content for GET /"; response_content_is_deeply([$method, $path], $expected_struct, $test_name) Similar to response_content_is(), except that if response content and $expected_struct are references, it does a deep comparison walking each data structure to see if they are equivalent. If the two structures are different, it will display the place where they start differing. response_content_is_deeply [GET => '/complex_struct'], { foo => 42, bar => 24}, "got expected response structure for GET /complex_struct"; response_content_like([$method, $path], $regexp, $test_name) Asserts that the response content for the given request matches the regexp given. response_content_like [GET => '/'], qr/Hello, World/, "response content looks good for GET /"; response_content_unlike([$method, $path], $regexp, $test_name) Asserts that the response content for the given request does not match the regexp given. response_content_unlike [GET => '/'], qr/Page not found/, "response content looks good for GET /"; response_headers_are_deeply([$method, $path], $expected, $test_name) Asserts that the response headers data structure equals the one given. response_headers_are_deeply [GET => '/'], [ 'X-Powered-By' => 'Dancer 1.150' ]; response_headers_include([$method, $path], $expected, $test_name) Asserts that the response headers data structure includes some of the defined ones. response_headers_include [GET => '/'], [ 'Content-Type' => 'text/plain' ]; dancer_response($method, $path, { params => $params, body => $body, headers => $headers, files => [{filename => '/path/to/file', name => 'my_file'}] }) Returns a Dancer::Response object for the given request. Only $method and $path are required. $params is a hashref, $body is a string and $headers can be an arrayref or a HTTP::Headers object, $files is an arrayref of hashref, containing some files to upload. A good reason to use this function is for testing POST requests. Since POST requests may not be idempotent, it is necessary to capture the content and status in one shot. Calling the response_status_is and response_content_is functions in succession would make two requests, each of which could alter the state of the application and cause Schrodinger's cat to die. my $response = dancer_response POST => '/widgets'; is $response->{status}, 202, "response for POST /widgets is 202"; is $response->{content}, "Widget #1 has been scheduled for creation", "response content looks good for first POST /widgets"; $response = dancer_response POST => '/widgets'; is $response->{status}, 202, "response for POST /widgets is 202"; is $response->{content}, "Widget #2 has been scheduled for creation", "response content looks good for second POST /widgets"; It's possible to test file uploads: post '/upload' => sub { return upload('image')->content }; $response = dancer_response(POST => '/upload', {files => [{name => 'image', filename => '/path/to/image.jpg'}]}); In addition, you can supply the file contents as the "data" key: my $data = 'A test string that will pretend to be file contents.'; $response = dancer_reponse(POST => '/upload', { files => [{name => 'test', filename => "filename.ext", data => $data}] }); read_logs my $logs = read_logs; Returns an array ref of all log messages issued by the app since the last call to "read_logs". For example: warning "Danger! Warning!"; debug "I like pie."; is_deeply read_logs, [ { level => "warning", message => "Danger! Warning!" }, { level => "debug", message => "I like pie.", } ]; error "Put out the light."; is_deeply read_logs, [ { level => "error", message => "Put out the light." }, ]; See Dancer::Logger::Capture for more details. LICENSE
This module is free software and is distributed under the same terms as Perl itself. AUTHOR
This module has been written by Alexis Sukrieh <sukria@sukria.net> SEE ALSO
Test::More perl v5.14.2 2012-03-31 Dancer::Test(3pm)
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy