# Collection not found when running newman from shell script

**URL:** <https://community.postman.com/t/collection-not-found-when-running-newman-from-shell-script/26260>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [July 29, 2021, 6:44am UTC](https://community.postman.com/t/collection-not-found-when-running-newman-from-shell-script/26260 "2021-07-29T06:44:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdoe26711](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jdoe26711/32/9289_2.png) [@jdoe26711](https://community.postman.com/u/jdoe26711)\
**Post date:** [July 29, 2021, 6:44am UTC](https://community.postman.com/t/collection-not-found-when-running-newman-from-shell-script/26260/1 "2021-07-29T06:44:03Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hello,

Newman logs the following error when called from a shell script.

```auto
error: collection could not be loaded
  " unable to read data from file "1_authentication.postman.collection.json
  ' ENOENT: no such file or directory, open '1_authentication.postman.collection.json

```

This is the script:

```auto
collection="1_authentication.postman.collection.json"
newman run $collection

```

It works only if I replace the $collection parameter with the name of the file

```auto
newman run 1_authentication.postman.collection.json

```

Newman version: 5.2.4  
OS: Ubuntu 20.04

I think I found a similar issue [here](https://community.postman.com/t/launchd-error-with-newman-usr-local-bin-newman-no-such-file-or-directory/1488) but the proposed solution did not work.

Is this a newman issue or am I doing something wrong?  
Thank you!
