Question: Why if I give those command lines:

```
  ip rule add from 10.222.192.0/25 table pdl
  ip route add 10.104.44.0/24 via 10.222.193.17 table pdl

```

everything works,
while if I execute this script:

```
#!/bin/sh

IPRULEADD=$(/sbin/ip rule add)
IPROUTEADD=$(/sbin/ip route add)

#
#

#----------- pdl ---------------------------
echo 100 pdl >> /etc/iproute2/rt_tables

$IPRULEADD from 10.222.192.0/25 table pdl
$IPROUTEADD 10.104.44.0/24 via 10.222.193.17 table pdl

```

I get this error:

`from: can't read /var/mail/10.222.192.0/25`

?

Thanks

Answer: 
in ES6(ecmascript6):

```
server.js
export const app = express()

login.js
import { app } from '../server'

```

in ES5:

```
server.js
module.exports: {
  app: express()
}

login.js
var app = require('path').app

```
In your server.js just use `require('login')(app);`

In your login.js:-

```
module.exports = function (app) {
    app.get('/', function(req, res) {
        res.render('login.jade');
    });
};

```